diff options
-rw-r--r-- | tests/QtCore/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/pyside_reload_test.py | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/tests/QtCore/CMakeLists.txt b/tests/QtCore/CMakeLists.txt index 9e49b76d..a8609de5 100644 --- a/tests/QtCore/CMakeLists.txt +++ b/tests/QtCore/CMakeLists.txt @@ -27,6 +27,7 @@ PYSIDE_TEST(bug_1019.py) PYSIDE_TEST(bug_1031.py) PYSIDE_TEST(bug_1063.py) PYSIDE_TEST(bug_1069.py) +PYSIDE_TEST(bug_PYSIDE-42.py) PYSIDE_TEST(blocking_signals_test.py) PYSIDE_TEST(classinfo_test.py) PYSIDE_TEST(child_event_test.py) diff --git a/tests/QtGui/pyside_reload_test.py b/tests/QtGui/pyside_reload_test.py index 3fd593c6..10695084 100644 --- a/tests/QtGui/pyside_reload_test.py +++ b/tests/QtGui/pyside_reload_test.py @@ -23,13 +23,13 @@ def increment_module_value(): modfile.write('Sentinel.value += 1' + os.linesep) modfile.flush() modfile.close() - if py3k.IS_PY3K: - import imp - cacheFile = imp.cache_from_source(dst) - else: - cacheFile = dst + 'c' - - os.remove(cacheFile) + if not sys.dont_write_bytecode: + if py3k.IS_PY3K: + import imp + cacheFile = imp.cache_from_source(dst) + else: + cacheFile = dst + 'c' + os.remove(cacheFile) class TestModuleReloading(unittest.TestCase): |