[pypy-commit] pypy compile-from-stream: Simplify some tests
amauryfa
noreply at buildbot.pypy.org
Mon Sep 5 23:20:09 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at 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)
More information about the pypy-commit
mailing list