From: Stefan Behnel Date: Sat, 13 Mar 2010 14:33:43 +0000 (+0100) Subject: safety fix in test runner X-Git-Tag: 0.13.beta0~306 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=24253ba2e4f18deb85101a6f0ce1de713b09c85f;p=cython.git safety fix in test runner --- diff --git a/runtests.py b/runtests.py index 86a9c85b..d52b7d1b 100644 --- a/runtests.py +++ b/runtests.py @@ -785,7 +785,7 @@ if __name__ == '__main__': import Cython.Compiler.Main except Exception: cy_modules = [ name for name in sys.modules - if name.startswith('Cython') ] + if name == 'Cython' or name.startswith('Cython.') ] for name in cy_modules: del sys.modules[name] # hasn't been refactored yet - do it now