summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_source_encoding.py
diff options
context:
space:
mode:
authorPavel Koneski <pavel.koneski@gmail.com>2019-09-11 13:57:33 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2019-09-11 13:57:32 (GMT)
commitb6643dcfc26859f935e4b3a6a2a203e8ef5320e2 (patch)
treeaba93370535007439697072a362eec3dd342ca10 /Lib/test/test_source_encoding.py
parent95da826db9ed4acbc81f32296f14429c06bd2124 (diff)
downloadcpython-b6643dcfc26859f935e4b3a6a2a203e8ef5320e2.zip
cpython-b6643dcfc26859f935e4b3a6a2a203e8ef5320e2.tar.gz
cpython-b6643dcfc26859f935e4b3a6a2a203e8ef5320e2.tar.bz2
bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (#13639)
* bpo-36919: make test_issue2301 implementation-independent
Diffstat (limited to 'Lib/test/test_source_encoding.py')
-rw-r--r--Lib/test/test_source_encoding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_source_encoding.py b/Lib/test/test_source_encoding.py
index 3873400..a0bd741 100644
--- a/Lib/test/test_source_encoding.py
+++ b/Lib/test/test_source_encoding.py
@@ -31,7 +31,7 @@ class MiscSourceEncodingTest(unittest.TestCase):
try:
compile(b"# coding: cp932\nprint '\x94\x4e'", "dummy", "exec")
except SyntaxError as v:
- self.assertEqual(v.text, "print '\u5e74'\n")
+ self.assertEqual(v.text.rstrip('\n'), "print '\u5e74'")
else:
self.fail()