[pypy-commit] pypy py3k: fix the invocations of _testfile because the signature changed
antocuni
noreply at buildbot.pypy.org
Tue Feb 28 16:31:34 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52982:cae066e3bc7d
Date: 2012-02-28 12:42 +0100
http://bitbucket.org/pypy/pypy/changeset/cae066e3bc7d/
Log: fix the invocations of _testfile because the signature changed
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
@@ -679,7 +679,7 @@
def test_check_compiled_module(self):
space = self.space
mtime = 12345
- cpathname = _testfile(importing.get_pyc_magic(space), mtime)
+ cpathname = _testfile(space, importing.get_pyc_magic(space), mtime)
ret = importing.check_compiled_module(space,
cpathname,
mtime)
@@ -700,7 +700,7 @@
os.remove(cpathname)
# check for wrong version
- cpathname = _testfile(importing.get_pyc_magic(space)+1, mtime)
+ cpathname = _testfile(space, importing.get_pyc_magic(space)+1, mtime)
ret = importing.check_compiled_module(space,
cpathname,
mtime)
@@ -968,7 +968,7 @@
pathname = "whatever"
mtime = 12345
co = compile('x = 42', '?', 'exec')
- cpathname = _testfile(importing.get_pyc_magic(space1),
+ cpathname = _testfile(space1, importing.get_pyc_magic(space1),
mtime, co)
w_modulename = space2.wrap('somemodule')
stream = streamio.open_file_as_stream(cpathname, "rb")
More information about the pypy-commit
mailing list