diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-26 19:07:54 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-26 19:07:54 -0500 |
commit | 2d628d40d60f967f135a8c21a62a000716c45054 (patch) | |
tree | ddeab6c0cb3309d42b4618891104f2570bc4cbbb /tests | |
parent | 92fe560a9368a5ac32ad5a2a272913b1b0ebfdd5 (diff) | |
download | python-coveragepy-git-2d628d40d60f967f135a8c21a62a000716c45054.tar.gz |
style: remove needless trailing commas
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_parser.py | 2 | ||||
-rw-r--r-- | tests/test_phystokens.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index 8009ce51..f74420b5 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -533,7 +533,7 @@ def test_ast_dump() -> None: num_lines = len(source.splitlines()) with warnings.catch_warnings(): # stress_phystoken.tok has deprecation warnings, suppress them. - warnings.filterwarnings("ignore", message=r".*invalid escape sequence",) + warnings.filterwarnings("ignore", message=r".*invalid escape sequence") ast_root = ast.parse(source) result: List[str] = [] ast_dump(ast_root, print=result.append) diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py index 5807f00d..2f1f7307 100644 --- a/tests/test_phystokens.py +++ b/tests/test_phystokens.py @@ -103,7 +103,7 @@ class PhysTokensTest(CoverageTest): # Check the tokenization of the stress-test files. # And check that those files haven't been incorrectly "fixed". with warnings.catch_warnings(): - warnings.filterwarnings("ignore", message=r".*invalid escape sequence",) + warnings.filterwarnings("ignore", message=r".*invalid escape sequence") stress = os.path.join(TESTS_DIR, fname) self.check_file_tokenization(stress) |