Skip to content

Commit e3c820a

Browse files
committed
refactor: only pypy3.8 windows didn't have os.getppid?
1 parent e28594a commit e3c820a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coverage/debug.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,8 @@ def filter(self, text: str) -> str:
380380
welcome = (
381381
f"New process: {pid=}, executable: {sys.executable!r}\n"
382382
+ f"New process: cmd: {argv!r}\n"
383+
+ f"New process parent pid: {os.getppid()!r}\n"
383384
)
384-
if hasattr(os, "getppid"):
385-
welcome += f"New process parent pid: {os.getppid()!r}\n"
386385

387386
if welcome:
388387
self.did_welcome = True

0 commit comments

Comments
 (0)