fix setup of test runner for Py3
authorStefan Behnel <scoder@users.berlios.de>
Tue, 5 Aug 2008 19:22:32 +0000 (21:22 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 5 Aug 2008 19:22:32 +0000 (21:22 +0200)
runtests.py

index 12a00ad1814b37d6e28cb328d078d01f7c9c8530..56811596e4973f3b37955a297ec74e35889d3d93 100644 (file)
@@ -383,6 +383,13 @@ if __name__ == '__main__':
 
     options, cmd_args = parser.parse_args()
 
+    if sys.version_info[0] >= 3:
+        # make sure we do not import (or run) Cython itself
+        options.doctests    = False
+        options.with_cython = False
+        options.unittests   = False
+        options.pyregr      = False
+
     if options.coverage:
         import coverage
         coverage.erase()