Skip to content
Permalink
Browse files

bpo-36919: make test_source_encoding.test_issue2301 implementation-in…

…dependent (GH-13639) (GH-15953)

* bpo-36919: make test_issue2301 implementation-independent
(cherry picked from commit b6643dc)

Co-authored-by: Pavel Koneski <pavel.koneski@gmail.com>
  • Loading branch information...
2 people authored and jaraco committed Sep 11, 2019
1 parent 4c2fa5c commit c2119399488a297275db7f0590cff957b6ce8a2e
@@ -31,7 +31,7 @@ def test_issue2301(self):
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()

@@ -0,0 +1,2 @@
Make ``test_source_encoding.test_issue2301`` implementation independent. The
test will work now for both CPython and IronPython.

0 comments on commit c211939

Please sign in to comment.
You can’t perform that action at this time.