Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r59364:d6525cdff419
Date: 2012-12-07 16:09 -0800
http://bitbucket.org/pypy/pypy/changeset/d6525cdff419/
Log: fix test_posix2, it inherits space from the module scope
diff --git a/pypy/module/posix/test/test_posix2.py
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -13,11 +13,13 @@
import signal
def setup_module(mod):
+ usemodules = ['binascii', 'posix', 'struct', 'rctime']
if os.name != 'nt':
- mod.space = gettestobjspace(usemodules=['posix', 'fcntl', 'struct'])
+ usemodules += ['fcntl']
else:
# On windows, os.popen uses the subprocess module
- mod.space = gettestobjspace(usemodules=['posix', '_rawffi', 'thread',
'struct'])
+ usemodules += ['_rawffi', 'thread']
+ mod.space = gettestobjspace(usemodules=usemodules)
mod.path = udir.join('posixtestfile.txt')
mod.path.write("this is a test")
mod.path2 = udir.join('test_posix2-')
@@ -50,9 +52,6 @@
class AppTestPosix:
- spaceconfig = {
- "usemodules": ["binascii", "struct", "rctime"],
- }
def setup_class(cls):
cls.space = space
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit