diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-07 18:29:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:13:55 -0300 |
commit | e8a7efe5905ab8a1b333e5634081b4afcff7c334 (patch) | |
tree | 69110f4faccf16bc4b3808f7407c65394d7a0e54 /tests/samplebinding/module_reload_test.py | |
parent | 75ee7ddf6ff37ed4972da02b44a77a8410e66ecd (diff) |
Module reload test now considers .pyo files (in addition to .pyc ones).
Diffstat (limited to 'tests/samplebinding/module_reload_test.py')
-rw-r--r-- | tests/samplebinding/module_reload_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/samplebinding/module_reload_test.py b/tests/samplebinding/module_reload_test.py index 1c870fc0a..17551bb86 100644 --- a/tests/samplebinding/module_reload_test.py +++ b/tests/samplebinding/module_reload_test.py @@ -15,7 +15,10 @@ def increment_module_value(): modfile.write('MyOtherObjectType.value += 1' + os.linesep) modfile.flush() modfile.close() - os.remove(dst + 'c') + try: + os.remove(dst + 'c') + except: + os.remove(dst + 'o') class TestModuleReloading(unittest.TestCase): |