summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-12 21:38:13 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-12 21:38:13 (GMT)
commitb63a450cc4c69c4e8668aa434a37b2aa213e94e0 (patch)
treec4180272dc29ed62e6611aff9dd337b42255c12c /Lib
parent821e4cfd01a8d4a7d9b4c0ed6a14d27744d60b3f (diff)
parentbbf53614b724e9beded57b72e1c8d9f7f1b8654a (diff)
downloadcpython-b63a450cc4c69c4e8668aa434a37b2aa213e94e0.zip
cpython-b63a450cc4c69c4e8668aa434a37b2aa213e94e0.tar.gz
cpython-b63a450cc4c69c4e8668aa434a37b2aa213e94e0.tar.bz2
test_strlit was never run
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_strlit.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_strlit.py b/Lib/test/test_strlit.py
index fb9cdbb..dbf8652 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()