[pypy-commit] pypy default: Reset sys.dont_write_bytecode because apparently the tests are not independent from each other.
mjacob
pypy.commits at gmail.com
Thu Feb 25 08:04:03 EST 2016
Author: Manuel Jacob <me at manueljacob.de>
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
More information about the pypy-commit
mailing list