]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #7027: regrtest.py keeps a reference to the encodings.ascii module as a
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 18:25:39 +0000 (18:25 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 27 Apr 2010 18:25:39 +0000 (18:25 +0000)
workaround to #7140 bug

Lib/test/regrtest.py
Misc/NEWS

index cb55b4768542732b8b4a53b70033ee862b00c8bb..8ab9973cedb52315be30fe6ea59b7fc48ea8f084 100755 (executable)
@@ -130,6 +130,9 @@ import sys
 import time
 import traceback
 import warnings
+# keep a reference to the ascii module to workaround #7140 bug
+# (see issue #7027)
+import encodings.ascii
 
 # I see no other way to suppress these warnings;
 # putting them in test_grammar.py has no effect:
index fdec90d75ce8839560fcd63be7b532bef1082b1f..f24a188ee508ce89031b9ccd2a5c29dfbbabf27e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -119,6 +119,9 @@ Build
 Tests
 -----
 
+- Issue #7027: regrtest.py keeps a reference to the encodings.ascii module as a
+  workaround to #7140 bug
+
 - Issue #3864: Skip three test_signal tests on freebsd6 because they fail
   if any thread was previously started, most likely due to a platform bug.