]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use -n for tests under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 16 Aug 2011 18:02:26 +0000 (20:02 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 16 Aug 2011 18:02:26 +0000 (20:02 +0200)
Tools/scripts/run_tests.py

index d8f5ac37b141cdcaa2f4d3ecd0c7daa9fa65f517..f750e192a0ead1d4ce25b8391987b31b0c5877cc 100755 (executable)
@@ -32,6 +32,8 @@ def main(regrtest_args):
                  '-r',            # Randomize test order
                  '-w',            # Re-run failed tests in verbose mode
                  ])
+    if sys.platform == 'win32':
+        args.append('-n')         # Silence alerts under Windows
     if not any(is_multiprocess_flag(arg) for arg in regrtest_args):
         args.extend(['-j', '0'])  # Use all CPU cores
     if not any(is_resource_use_flag(arg) for arg in regrtest_args):