diff options
-rw-r--r-- | test/test_testing.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_testing.py b/test/test_testing.py index 64c35e36..c8672e49 100644 --- a/test/test_testing.py +++ b/test/test_testing.py @@ -184,8 +184,10 @@ class CoverageTestTest(CoverageTest): # Try it with a "coverage debug sys" command. out = self.run_command("coverage debug sys").splitlines() + # "environment: COV_FOOBAR = XYZZY" or "COV_FOOBAR = XYZZY" executable = [l for l in out if "executable:" in l][0] executable = executable.split(":", 1)[1].strip() self.assertEqual(executable, sys.executable) - environ = [l for l in out if "COV_FOOBAR" in l][0].strip() - self.assertEqual(environ, "COV_FOOBAR = XYZZY") + environ = [l for l in out if "COV_FOOBAR" in l][0] + _, _, environ = environ.rpartition(":") + self.assertEqual(environ.strip(), "COV_FOOBAR = XYZZY") |