test_strlit was never run

This commit is contained in:
Antoine Pitrou 2012-01-12 22:36:48 +01:00
parent a3d1e2e342
commit bbf53614b7
1 changed files with 5 additions and 3 deletions

View File

@ -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()