Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b63a450

Browse files
committed
test_strlit was never run
2 parents 821e4cf + bbf5361 commit b63a450

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/test/test_strlit.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import shutil
3333
import tempfile
3434
import unittest
35+
import test.support
3536

3637

3738
TEMPLATE = r"""# coding: %s
@@ -142,7 +143,8 @@ def test_file_latin9(self):
142143
self.check_encoding("latin9")
143144

144145

146+
def test_main():
147+
test.support.run_unittest(__name__)
148+
145149
if __name__ == "__main__":
146-
# Hack so that error messages containing non-ASCII can be printed
147-
sys.stdout._encoding = sys.stderr._encoding = "utf-8"
148-
unittest.main()
150+
test_main()

0 commit comments

Comments
 (0)