Commit 24253ba2 authored by Stefan Behnel's avatar Stefan Behnel

safety fix in test runner

parent 2f3cd4fd
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment