Skip to content

Commit 4ef3106

Browse files
committed
oops mypy
1 parent ba7e38f commit 4ef3106

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

coverage/control.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def __init__( # pylint: disable=too-many-arguments
268268
self._warn_preimported_source = check_preimported
269269
self._no_warn_slugs: set[str] = set()
270270
self._messages = messages
271-
self._patch_pth_file = True
271+
self._make_pth_file = True
272272

273273
# A record of all the warnings that have been issued.
274274
self._warnings: list[str] = []
@@ -679,7 +679,7 @@ def start(self) -> None:
679679
if self._auto_load:
680680
self.load()
681681

682-
apply_patches(self, self.config, pth_file=self._patch_pth_file)
682+
apply_patches(self, self.config, make_pth_file=self._make_pth_file)
683683

684684
self._collector.start()
685685
self._started = True
@@ -1433,7 +1433,7 @@ def process_startup() -> Coverage | None:
14331433
cov._warn_unimported_source = False
14341434
cov._warn_preimported_source = False
14351435
cov._auto_save = True
1436-
cov._patch_pth_file = False
1436+
cov._make_pth_file = False
14371437
cov.start()
14381438

14391439
return cov

coverage/patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from coverage.config import CoverageConfig
2020

2121

22-
def apply_patches(cov: Coverage, config: CoverageConfig, *, pth_file: bool=True) -> None:
22+
def apply_patches(cov: Coverage, config: CoverageConfig, *, make_pth_file: bool=True) -> None:
2323
"""Apply invasive patches requested by `[run] patch=`."""
2424

2525
for patch in sorted(set(config.patch)):
@@ -78,7 +78,7 @@ def coverage_execv_patch(*args: Any, **kwargs: Any) -> Any:
7878
os.execve = make_execv_patch("execve", os.execve)
7979

8080
elif patch == "subprocess":
81-
if pth_file:
81+
if make_pth_file:
8282
pth_file = create_pth_file()
8383
assert pth_file is not None
8484
atexit.register(pth_file.unlink, missing_ok=True)

0 commit comments

Comments
 (0)