diff options
-rw-r--r-- | tests/test_phystokens.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py index 5a2c055f..ddb652e6 100644 --- a/tests/test_phystokens.py +++ b/tests/test_phystokens.py @@ -228,11 +228,15 @@ class Bug529Test(CoverageTest): """Test of bug 529""" def test_bug_529(self): + # Don't over-neuter coding declarations. This happened with a test + # file which contained code in multi-line strings, all with coding + # declarations. The neutering of the file also changed the multi-line + # strings, which it shouldn't have. self.make_file("the_test.py", '''\ # -*- coding: utf-8 -*- import unittest - class FailsUnderCoverageTest(unittest.TestCase): - def test_fails_under_coverage(self): + class Bug529Test(unittest.TestCase): + def test_two_strings_are_equal(self): src1 = u"""\\ # -*- coding: utf-8 -*- # Just a comment. |