diff options
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 7c5e1373..462cecee 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -272,7 +272,7 @@ class CmdLineTest(BaseCmdLineTest): """) @pytest.mark.parametrize("cmd, output", [ - ("debug", "What information would you like: config, data, sys, premain?"), + ("debug", "What information would you like: config, data, sys, premain, pybehave?"), ("debug foo", "Don't know what you mean by 'foo'"), ("debug sys config", "Only one topic at a time, please"), ]) @@ -292,6 +292,16 @@ class CmdLineTest(BaseCmdLineTest): assert "skip_covered:" in out assert "skip_empty:" in out + def test_debug_pybehave(self): + self.command_line("debug pybehave") + out = self.stdout() + assert " CPYTHON:" in out + assert " PYVERSION:" in out + assert " pep626:" in out + pyversion = next(l for l in out.splitlines() if " PYVERSION:" in l) + vtuple = eval(pyversion.partition(":")[-1]) # pylint: disable=eval-used + assert vtuple[:5] == sys.version_info + def test_debug_premain(self): self.command_line("debug premain") out = self.stdout() |