Skip to content

Commit

Permalink
bpo-36919: make test_source_encoding.test_issue2301 implementation-in…
Browse files Browse the repository at this point in the history
…dependent (#13639)

* bpo-36919: make test_issue2301 implementation-independent
  • Loading branch information
BCSharp authored and jaraco committed Sep 11, 2019
1 parent 95da826 commit b6643dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_source_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Original file line number Diff line number Diff line change
@@ -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 b6643dc

Please sign in to comment.