Issue #7027: regrtest.py keeps a reference to the encodings.ascii module as a
workaround to #7140 bug
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 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: