aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_codecmaps_tw.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_codecmaps_tw.py')
-rw-r--r--Lib/test/test_codecmaps_tw.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_codecmaps_tw.py b/Lib/test/test_codecmaps_tw.py
index 143ae230b87..6db5091fc3a 100644
--- a/Lib/test/test_codecmaps_tw.py
+++ b/Lib/test/test_codecmaps_tw.py
@@ -1,10 +1,10 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# test_codecmaps_tw.py
# Codec mapping tests for ROC encodings
#
-from test import test_support
+from test import support
from test import test_multibytecodec_support
import unittest
@@ -20,12 +20,12 @@ class TestCP950Map(test_multibytecodec_support.TestBase_Mapping,
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
'WINDOWS/CP950.TXT'
pass_enctest = [
- ('\xa2\xcc', u'\u5341'),
- ('\xa2\xce', u'\u5345'),
+ (b'\xa2\xcc', '\u5341'),
+ (b'\xa2\xce', '\u5345'),
]
def test_main():
- test_support.run_unittest(__name__)
+ support.run_unittest(__name__)
if __name__ == "__main__":
test_main()