summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_source_encoding.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-11 14:36:36 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2019-09-11 14:36:36 (GMT)
commitc2119399488a297275db7f0590cff957b6ce8a2e (patch)
tree4efa12be1a970d764e5ec2857075b98e5e82dec8 /Lib/test/test_source_encoding.py
parent4c2fa5c474af81487c7a8d4188f9afd80d4d769b (diff)
downloadcpython-c2119399488a297275db7f0590cff957b6ce8a2e.zip
cpython-c2119399488a297275db7f0590cff957b6ce8a2e.tar.gz
cpython-c2119399488a297275db7f0590cff957b6ce8a2e.tar.bz2
bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (GH-13639) (GH-15953)
* bpo-36919: make test_issue2301 implementation-independent (cherry picked from commit b6643dcfc26859f935e4b3a6a2a203e8ef5320e2) Co-authored-by: Pavel Koneski <pavel.koneski@gmail.com>
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()