From 8f4d404c8f9044ea1c3bf2479236f51d7706cb76 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 1 Jan 2023 07:42:00 -0500 Subject: refactor: a better way to filter `coverage debug pybehave` --- tests/test_cmdline.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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 -- cgit v1.2.1