From 61f6ee5c3b2f99a02c3b5988123e74e1d3dbc8ba Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 22 Jan 2023 16:15:35 -0500 Subject: fix: make tracing messages easier to understand --- coverage/inorout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coverage/inorout.py b/coverage/inorout.py index d5ca938f..babaa3d8 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -313,7 +313,7 @@ class InOrOut: 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 @@ -345,7 +345,7 @@ class InOrOut: # file names like "", "", or # "". 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 -- cgit v1.2.1