From: Antoine Pitrou Date: Thu, 12 Jan 2012 21:36:48 +0000 (+0100) Subject: test_strlit was never run X-Git-Tag: v3.2.3rc1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbf53614b724e9beded57b72e1c8d9f7f1b8654a;p=thirdparty%2FPython%2Fcpython.git test_strlit was never run --- diff --git a/Lib/test/test_strlit.py b/Lib/test/test_strlit.py index 9eb30e9c54b6..30475a441b99 100644 --- a/Lib/test/test_strlit.py +++ b/Lib/test/test_strlit.py @@ -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()