diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 10:10:47 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 10:10:47 -0500 |
commit | d02be78c3a0ee3022be56c623bb9bdcad1e9acd4 (patch) | |
tree | 1e74153bb4741f6a9e2f1e1f55d2b9960a490bb3 /tests/test_phystokens.py | |
parent | a035bde3320a501720ae722dc6b54fe7ff5c8647 (diff) | |
download | python-coveragepy-git-nedbat/unittest2pytest.tar.gz |
style: fix long lines and avoid backslashesnedbat/unittest2pytest
Diffstat (limited to 'tests/test_phystokens.py')
-rw-r--r-- | tests/test_phystokens.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py index 26a72d28..c7375cb5 100644 --- a/tests/test_phystokens.py +++ b/tests/test_phystokens.py @@ -130,9 +130,7 @@ class SourceEncodingTest(CoverageTest): def test_detect_source_encoding(self): for _, source, expected in ENCODING_DECLARATION_SOURCES: - assert source_encoding(source) == \ - expected, \ - "Wrong encoding in %r" % source + assert source_encoding(source) == expected, "Wrong encoding in %r" % source def test_detect_source_encoding_not_in_comment(self): if env.PYPY3: # pragma: no metacov @@ -196,9 +194,7 @@ class NeuterEncodingDeclarationTest(CoverageTest): # The neutered source will be detected as having no encoding # declaration. - assert source_encoding(neutered) == \ - DEF_ENCODING, \ - "Wrong encoding in %r" % neutered + assert source_encoding(neutered) == DEF_ENCODING, "Wrong encoding in %r" % neutered def test_two_encoding_declarations(self): input_src = textwrap.dedent(u"""\ |