mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
test_strlit was never run
This commit is contained in:
commit
b63a450cc4
1 changed files with 5 additions and 3 deletions
|
|
@ -32,6 +32,7 @@ import sys
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
import test.support
|
||||||
|
|
||||||
|
|
||||||
TEMPLATE = r"""# coding: %s
|
TEMPLATE = r"""# coding: %s
|
||||||
|
|
@ -142,7 +143,8 @@ class TestLiterals(unittest.TestCase):
|
||||||
self.check_encoding("latin9")
|
self.check_encoding("latin9")
|
||||||
|
|
||||||
|
|
||||||
|
def test_main():
|
||||||
|
test.support.run_unittest(__name__)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Hack so that error messages containing non-ASCII can be printed
|
test_main()
|
||||||
sys.stdout._encoding = sys.stderr._encoding = "utf-8"
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue