fix pyregr test language level at running CPython version
authorStefan Behnel <scoder@users.berlios.de>
Thu, 21 Apr 2011 04:56:22 +0000 (06:56 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 21 Apr 2011 04:56:22 +0000 (06:56 +0200)
runtests.py

index 759df1e5ccc5778249be2b01637a6ad939205f08..085b6c6575c06f7081cb1a5c7fd3042a6d7e15f5 100644 (file)
@@ -1345,7 +1345,7 @@ def main():
                                     options.annotate_source, options.cleanup_workdir,
                                     options.cleanup_sharedlibs, True,
                                     options.cython_only, languages, test_bugs,
-                                    options.fork, options.language_level)
+                                    options.fork, sys.version_info[0])
             sys.stderr.write("Including CPython regression tests in %s\n" % sys_pyregr_dir)
             test_suite.addTest(filetests.handle_directory(sys_pyregr_dir, 'pyregr'))