summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-12 21:36:48 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-12 21:36:48 (GMT)
commitbbf53614b724e9beded57b72e1c8d9f7f1b8654a (patch)
tree6524dfbac3f315fd756748960c13e6c6688d3427 /Lib
parenta3d1e2e3420fe6d581c22ec847809c3159bdb880 (diff)
downloadcpython-bbf53614b724e9beded57b72e1c8d9f7f1b8654a.zip
cpython-bbf53614b724e9beded57b72e1c8d9f7f1b8654a.tar.gz
cpython-bbf53614b724e9beded57b72e1c8d9f7f1b8654a.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 9eb30e9..30475a4 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()