summaryrefslogtreecommitdiff
path: root/tests/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-05 20:10:24 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-05 20:10:24 -0500
commit78444f4c06df6a634fa67dd99ee7c07b6b633d9e (patch)
tree4651930bc1ec5449e408c347b2d660522f8ac9e4 /tests/test_files.py
parentd4339ee90c3146f370d572cbb1b9ab9907daafad (diff)
downloadpython-coveragepy-git-78444f4c06df6a634fa67dd99ee7c07b6b633d9e.tar.gz
style: use good style for annotated defaults parameters
Diffstat (limited to 'tests/test_files.py')
-rw-r--r--tests/test_files.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_files.py b/tests/test_files.py
index fe6c36a2..35270e7b 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -133,10 +133,10 @@ def test_flat_rootname(original: str, flat: str) -> None:
def globs_to_regex_params(
patterns: Iterable[str],
- case_insensitive: bool=False,
- partial: bool=False,
- matches: Iterable[str]=(),
- nomatches: Iterable[str]=(),
+ case_insensitive: bool = False,
+ partial: bool = False,
+ matches: Iterable[str] = (),
+ nomatches: Iterable[str] = (),
) -> Iterator[Any]:
"""Generate parameters for `test_globs_to_regex`.
@@ -399,7 +399,7 @@ class PathAliasesTest(CoverageTest):
expected = files.canonical_filename(out)
assert mapped == expected
- def assert_unchanged(self, aliases: PathAliases, inp: str, exists: bool=True) -> None:
+ def assert_unchanged(self, aliases: PathAliases, inp: str, exists: bool = True) -> None:
"""Assert that `inp` mapped through `aliases` is unchanged."""
assert aliases.map(inp, exists=lambda p: exists) == inp