Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 821e4cf + bbf5361 commit b63a450Copy full SHA for b63a450
1 file changed
Lib/test/test_strlit.py
@@ -32,6 +32,7 @@
32
import shutil
33
import tempfile
34
import unittest
35
+import test.support
36
37
38
TEMPLATE = r"""# coding: %s
@@ -142,7 +143,8 @@ def test_file_latin9(self):
142
143
self.check_encoding("latin9")
144
145
146
+def test_main():
147
+ test.support.run_unittest(__name__)
148
+
149
if __name__ == "__main__":
- # Hack so that error messages containing non-ASCII can be printed
- sys.stdout._encoding = sys.stderr._encoding = "utf-8"
- unittest.main()
150
+ test_main()
0 commit comments