summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-22 16:15:35 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-22 16:15:35 -0500
commit61f6ee5c3b2f99a02c3b5988123e74e1d3dbc8ba (patch)
tree0ef3f2d771bc2a62ee4e5e06140948aa5c74a27f
parente1ae48eccb45bd439f7f7a696b09f1a7bd565dea (diff)
downloadpython-coveragepy-git-61f6ee5c3b2f99a02c3b5988123e74e1d3dbc8ba.tar.gz
fix: make tracing messages easier to understand
-rw-r--r--coverage/inorout.py4
1 files 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 "<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