diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-20 21:36:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-20 21:36:29 (GMT) |
commit | e431d3c9aadb52dd1eea4d1e606e94f1c8471459 (patch) | |
tree | 5154063f2e6048881fa88675efd6dfb4bd2f5c4f /Lib/test/test_source_encoding.py | |
parent | 97eee1cfda602df25866a6a62796f675caf52323 (diff) | |
download | cpython-e431d3c9aadb52dd1eea4d1e606e94f1c8471459.zip cpython-e431d3c9aadb52dd1eea4d1e606e94f1c8471459.tar.gz cpython-e431d3c9aadb52dd1eea4d1e606e94f1c8471459.tar.bz2 |
Issue #26581: Use the first coding cookie on a line, not the last one.
Diffstat (limited to 'Lib/test/test_source_encoding.py')
-rw-r--r-- | Lib/test/test_source_encoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_source_encoding.py b/Lib/test/test_source_encoding.py index 7979c82..3873400 100644 --- a/Lib/test/test_source_encoding.py +++ b/Lib/test/test_source_encoding.py @@ -178,7 +178,7 @@ class AbstractSourceEncodingTest: def test_double_coding_same_line(self): src = (b'#coding:iso8859-15 coding:latin1\n' b'print(ascii("\xc3\xa4"))\n') - self.check_script_output(src, br"'\xc3\xa4'") + self.check_script_output(src, br"'\xc3\u20ac'") def test_first_non_utf8_coding_line(self): src = (b'#coding:iso-8859-15 \xa4\n' |