Skip to content

Commit 61f6ee5

Browse files
committed
fix: make tracing messages easier to understand
1 parent e1ae48e commit 61f6ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coverage/inorout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def nope(disp: TFileDisposition, reason: str) -> TFileDisposition:
313313
return disp
314314

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

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

350350
canonical = canonical_filename(filename)
351351
disp.canonical_filename = canonical

0 commit comments

Comments
 (0)