cleanup
authorStefan Behnel <scoder@users.berlios.de>
Fri, 9 Oct 2009 15:04:58 +0000 (17:04 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 9 Oct 2009 15:04:58 +0000 (17:04 +0200)
runtests.py

index 4323dcc390a9d711855e87268bd495d07baec514..477ba96de0275338a3c841a40ff6420c0e675f4d 100644 (file)
@@ -676,6 +676,10 @@ if __name__ == '__main__':
             compile as cython_compile
         from Cython.Compiler import Errors
         Errors.LEVEL = 0 # show all warnings
+        from Cython.Compiler import Options
+        #Options.generate_cleanup_code = 3   # complete cleanup code
+        from Cython.Compiler import DebugFlags
+        DebugFlags.debug_temp_code_comments = 1
 
     # RUN ALL TESTS!
     UNITTEST_MODULE = "Cython"
@@ -691,10 +695,6 @@ if __name__ == '__main__':
     if WITH_CYTHON:
         from Cython.Compiler.Version import version
         sys.stderr.write("Running tests against Cython %s\n" % version)
-        from Cython.Compiler import Options
-        #Options.generate_cleanup_code = 3   # complete cleanup code
-        from Cython.Compiler import DebugFlags
-        DebugFlags.debug_temp_code_comments = 1
     else:
         sys.stderr.write("Running tests without Cython.\n")
     sys.stderr.write("Python %s\n" % sys.version)