summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-01 07:42:00 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-01 07:42:00 -0500
commit8f4d404c8f9044ea1c3bf2479236f51d7706cb76 (patch)
treea3b5d2d58edaa15a37bff9aa2f1b4fcbba39dcdb /tests
parenta3f3841b746a1789ff8f7fea0cc0715c45770996 (diff)
downloadpython-coveragepy-git-8f4d404c8f9044ea1c3bf2479236f51d7706cb76.tar.gz
refactor: a better way to filter `coverage debug pybehave`
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmdline.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 85e99ad5..96bd3bbf 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -318,6 +318,12 @@ class CmdLineTest(BaseCmdLineTest):
assert " CPYTHON:" in out
assert " PYVERSION:" in out
assert " pep626:" in out
+
+ # Some things that shouldn't appear..
+ assert "typing." not in out # import from typing
+ assert ": <" not in out # objects without a good repr
+
+ # It should report PYVERSION correctly.
pyversion = re_line(r" PYVERSION:", out)
vtuple = ast.literal_eval(pyversion.partition(":")[-1].strip())
assert vtuple[:5] == sys.version_info