]> granicus.if.org Git - python/commitdiff
test_strlit was never run
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 12 Jan 2012 21:36:48 +0000 (22:36 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 12 Jan 2012 21:36:48 +0000 (22:36 +0100)
Lib/test/test_strlit.py

index 9eb30e9c54b670bb92e5bc5b39f253e687a0a1e6..30475a441b99861af5a331785d2197c0950eedb2 100644 (file)
@@ -32,6 +32,7 @@ import sys
 import shutil
 import tempfile
 import unittest
+import test.support
 
 
 TEMPLATE = r"""# coding: %s
@@ -142,7 +143,8 @@ class TestLiterals(unittest.TestCase):
         self.check_encoding("latin9")
 
 
+def test_main():
+    test.support.run_unittest(__name__)
+
 if __name__ == "__main__":
-    # Hack so that error messages containing non-ASCII can be printed
-    sys.stdout._encoding = sys.stderr._encoding = "utf-8"
-    unittest.main()
+    test_main()