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

* bpo-36919: make test_issue2301 implementation-independent
This commit is contained in:
Pavel Koneski 2019-09-11 06:57:33 -07:00 committed by Jason R. Coombs
parent 95da826db9
commit b6643dcfc2
2 changed files with 3 additions and 1 deletions

View file

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