diff options
-rw-r--r-- | coverage/types.py | 2 | ||||
-rw-r--r-- | tests/test_parser.py | 2 | ||||
-rw-r--r-- | tests/test_phystokens.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/coverage/types.py b/coverage/types.py index 3d21ac9d..b8135d05 100644 --- a/coverage/types.py +++ b/coverage/types.py @@ -161,7 +161,7 @@ class TPlugin(Protocol): class TWarnFn(Protocol): """A callable warn() function.""" - def __call__(self, msg: str, slug: Optional[str] = None, once: bool = False,) -> None: + def __call__(self, msg: str, slug: Optional[str] = None, once: bool = False) -> None: ... 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) |