diff options
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_process.py b/test/test_process.py index a67a9c2d..4df8860f 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -394,6 +394,15 @@ class ProcessTest(CoverageTest): # about 5. self.assertGreater(data.summary()['os.py'], 50) + def test_version_aliases(self): + cmd = "coverage%d" % sys.version_info[0] + out = self.run_command(cmd) + self.assertIn("Code coverage for Python", out) + badcmd = "coverage%d" % (5 - sys.version_info[0]) + out = self.run_command(badcmd) + self.assertNotIn("Code coverage for Python", out) + + class FailUnderTest(CoverageTest): """Tests of the --fail-under switch.""" |