diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-01 15:34:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-01 15:34:22 (GMT) |
commit | 126041844c3d5dc378a8828b508c76a694bccf2b (patch) | |
tree | 96cde74243c360818b041ce42ef9e4b0ddbc3b13 /Lib/test/test_source_encoding.py | |
parent | 98f2bbf794013f1d194e219fbacaa99146fd5630 (diff) | |
parent | b77bf326852f97f125ff57810a5f9663209414a7 (diff) | |
download | cpython-126041844c3d5dc378a8828b508c76a694bccf2b.zip cpython-126041844c3d5dc378a8828b508c76a694bccf2b.tar.gz cpython-126041844c3d5dc378a8828b508c76a694bccf2b.tar.bz2 |
merge 3.3
Diffstat (limited to 'Lib/test/test_source_encoding.py')
-rw-r--r-- | Lib/test/test_source_encoding.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_source_encoding.py b/Lib/test/test_source_encoding.py index 92cf8d9..0c41e50 100644 --- a/Lib/test/test_source_encoding.py +++ b/Lib/test/test_source_encoding.py @@ -65,7 +65,8 @@ class SourceEncodingTest(unittest.TestCase): 'coding20731.py')], stderr=subprocess.PIPE) err = sub.communicate()[1] - self.assertEquals(err, b'') + self.assertEqual(sub.returncode, 0) + self.assertNotIn(b'SyntaxError', err) def test_error_message(self): compile(b'# -*- coding: iso-8859-15 -*-\n', 'dummy', 'exec') |