Skip to content

Commit

Permalink
fix: make tracing messages easier to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 22, 2023
1 parent e1ae48e commit 61f6ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coverage/inorout.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def nope(disp: TFileDisposition, reason: str) -> TFileDisposition:
return disp

if original_filename.startswith('<'):
return nope(disp, "not a real original file name")
return nope(disp, "original file name is not real")

if frame is not None:
# Compiled Python files have two file names: frame.f_code.co_filename is
Expand Down Expand Up @@ -345,7 +345,7 @@ def nope(disp: TFileDisposition, reason: str) -> TFileDisposition:
# file names like "<string>", "<doctest readme.txt[0]>", or
# "<exec_function>". Don't ever trace these executions, since we
# can't do anything with the data later anyway.
return nope(disp, "not a real file name")
return nope(disp, "file name is not real")

canonical = canonical_filename(filename)
disp.canonical_filename = canonical
Expand Down

0 comments on commit 61f6ee5

Please sign in to comment.