[Python-checkins] cpython (3.2): test_strlit was never run

antoine.pitrou python-checkins at python.org
Thu Jan 12 22:39:56 CET 2012


http://hg.python.org/cpython/rev/e23beda83902
changeset: 74352:e23beda83902
branch: 3.2
parent: 74347:4a767054551b
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Jan 12 22:36:48 2012 +0100
summary:
 test_strlit was never run
files:
 Lib/test/test_strlit.py | 8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_strlit.py b/Lib/test/test_strlit.py
--- a/Lib/test/test_strlit.py
+++ b/Lib/test/test_strlit.py
@@ -32,6 +32,7 @@
 import shutil
 import tempfile
 import unittest
+import test.support
 
 
 TEMPLATE = r"""# coding: %s
@@ -142,7 +143,8 @@
 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()
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /