From 8a3a85b1c0cbbe2d1afb781784fdee54962b3e45 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 28 Nov 2012 20:24:36 -0500 Subject: Fix this test --- test/test_testing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_testing.py b/test/test_testing.py index 64c35e3..c8672e4 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") -- cgit v1.2.1