]> granicus.if.org Git - python/commitdiff
Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 24 Feb 2014 11:57:00 +0000 (13:57 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 24 Feb 2014 11:57:00 +0000 (13:57 +0200)
Patch by Arfrever Frehtes Taifersar Arahesis.

Misc/NEWS
Tools/scripts/run_tests.py

index 0bb54c5f88963e3f58e221d8b1eeeccb9100c3d0..50ac145daadadf991290493f6dd2ff35eb88ff66 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -149,6 +149,12 @@ Build
 - Issue #20609: Restored the ability to build 64-bit Windows binaries on
   32-bit Windows, which was broken by the change in issue #19788.
 
+Tools/Demos
+-----------
+
+- Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
+  Patch by Arfrever Frehtes Taifersar Arahesis.
+
 
 What's New in Python 3.3.4?
 ===========================
index e2a205097812e628e9518cda63570fb3e84a7d7f..a6c5da35e2f67a42099ca4fa91c0c9ddb7be7575 100644 (file)
@@ -32,6 +32,12 @@ def main(regrtest_args):
             ]
     # Allow user-specified interpreter options to override our defaults.
     args.extend(test.support.args_from_interpreter_flags())
+
+    # Workaround for issue #20355
+    os.environ.pop("PYTHONWARNINGS", None)
+    # Workaround for issue #20361
+    args.extend(['-W', 'error::BytesWarning'])
+
     args.extend(['-m', 'test',    # Run the test suite
                  '-r',            # Randomize test order
                  '-w',            # Re-run failed tests in verbose mode