summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-04-27 18:25:39 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-04-27 18:25:39 (GMT)
commita7baa4bcff5e7fa9cc176d5bbd916a93d1b2b469 (patch)
tree7bede0a72914f9c0edd3a678473880690835fed1
parent94d6fba9e103d618fba36018d826bd9ffe33b332 (diff)
downloadcpython-a7baa4bcff5e7fa9cc176d5bbd916a93d1b2b469.zip
cpython-a7baa4bcff5e7fa9cc176d5bbd916a93d1b2b469.tar.gz
cpython-a7baa4bcff5e7fa9cc176d5bbd916a93d1b2b469.tar.bz2
Issue #7027: regrtest.py keeps a reference to the encodings.ascii module as a
workaround to #7140 bug
-rwxr-xr-xLib/test/regrtest.py3
-rw-r--r--Misc/NEWS3
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index cb55b47..8ab9973 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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:
diff --git a/Misc/NEWS b/Misc/NEWS
index fdec90d..f24a188 100644
--- 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.