Commit b6643dcf authored by Pavel Koneski's avatar Pavel Koneski Committed by Jason R. Coombs

bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (#13639)

* bpo-36919: make test_issue2301 implementation-independent
parent 95da826d
......@@ -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()
......
Make ``test_source_encoding.test_issue2301`` implementation independent. The
test will work now for both CPython and IronPython.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment