summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-07 18:29:54 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-02-17 11:02:23 -0300
commit1cfc5f160ceae291f407ffc58046114fec96da8b (patch)
tree3671d5f349cb1ed5532cc983c94cfe8cd2c7f50d /tests
parent30d71761e412b2b5cf833370f291e331ee237ec3 (diff)
downloadshiboken-1cfc5f160ceae291f407ffc58046114fec96da8b.tar.gz
shiboken-1cfc5f160ceae291f407ffc58046114fec96da8b.tar.xz
shiboken-1cfc5f160ceae291f407ffc58046114fec96da8b.zip
Module reload test now considers .pyo files (in addition to .pyc ones).
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/module_reload_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/samplebinding/module_reload_test.py b/tests/samplebinding/module_reload_test.py
index 1c870fc0..17551bb8 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):