Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: compile-from-stream Changeset: r47091:47e802416bf2 Date: 2011-08-31 01:34 +0200 http://bitbucket.org/pypy/pypy/changeset/47e802416bf2/
Log: Simplify some tests diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py --- a/pypy/module/imp/test/test_import.py +++ b/pypy/module/imp/test/test_import.py @@ -695,9 +695,8 @@ pathname = _testfilesource() stream = streamio.open_file_as_stream(pathname, "r") try: - w_ret = importing.parse_source_module(space, - pathname, - stream.readall()) + w_ret = importing.parse_source_file_module( + space, pathname, stream) finally: stream.close() pycode = space.interpclass_w(w_ret) @@ -839,9 +838,8 @@ os.chmod(pathname, 0777) stream = streamio.open_file_as_stream(pathname, "r") try: - w_ret = importing.parse_source_module(space, - pathname, - stream.readall()) + w_ret = importing.parse_source_file_module( + space, pathname, stream) finally: stream.close() pycode = space.interpclass_w(w_ret) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit