Skip to content

Commit

Permalink
refactor: only pypy3.8 windows didn't have os.getppid?
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Sep 24, 2024
1 parent 378bcb0 commit c2177ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coverage/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,8 @@ def filter(self, text: str) -> str:
welcome = (
f"New process: {pid=}, executable: {sys.executable!r}\n"
+ f"New process: cmd: {argv!r}\n"
+ f"New process parent pid: {os.getppid()!r}\n"
)
if hasattr(os, "getppid"):
welcome += f"New process parent pid: {os.getppid()!r}\n"

if welcome:
self.did_welcome = True
Expand Down

0 comments on commit c2177ff

Please sign in to comment.