diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-03-04 19:56:33 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-03-04 19:56:33 -0500 |
commit | e0b3571b6565be4fa546779aca237d97344451f1 (patch) | |
tree | 979fefa074bcdf912cad89372ab1a42fa04f3cd6 /tests/test_phystokens.py | |
parent | 4c7da20cbb3dd516a367457cf17aa50598cd9094 (diff) | |
download | python-coveragepy-e0b3571b6565be4fa546779aca237d97344451f1.tar.gz |
Describe and relabel a test that has nothing to do with fail-under.
Diffstat (limited to 'tests/test_phystokens.py')
-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 5a2c055..ddb652e 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. |