Commits

Philip Jenvey committed 9047e50

revert 54d5f5238df9 and import latin_1 additionally as cpython does guarantee
these have already been imported at startup

  • Participants
  • Parent commits 06fa7f1
  • Branches py3k

Comments (0)

Files changed (1)

pypy/module/imp/test/test_import.py

             (mydir):
                 import sys
                 sys.path.append(mydir)
+
+                # Obscure: manually bootstrap the utf-8/latin1 codecs
+                # for TextIOs opened by imp.find_module. It's not
+                # otherwise loaded by the test infrastructure but would
+                # have been by app_main
+                import encodings.utf_8
+                import encodings.latin_1
         """)
 
     def teardown_class(cls):