Author: Manuel Jacob <[email protected]>
Branch:
Changeset: r82500:b94753e4f5cc
Date: 2016-02-25 13:25 +0100
http://bitbucket.org/pypy/pypy/changeset/b94753e4f5cc/
Log: Reset sys.dont_write_bytecode because apparently the tests are not
independent from each other.
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
@@ -1347,11 +1347,16 @@
class AppTestWriteBytecode(object):
- def setup(cls):
+ def setup_class(cls):
cls.saved_modules = _setup(cls.space)
- def teardown(cls):
+ def teardown_class(cls):
_teardown(cls.space, cls.saved_modules)
+ cls.space.appexec([], """
+ ():
+ import sys
+ sys.dont_write_bytecode = False
+ """)
def test_default(self):
import os.path
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit