summaryrefslogtreecommitdiff
path: root/test/test_testing.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_testing.py')
-rw-r--r--test/test_testing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_testing.py b/test/test_testing.py
index c8672e49..fcbffcde 100644
--- a/test/test_testing.py
+++ b/test/test_testing.py
@@ -3,7 +3,7 @@
import os, sys
sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k
-from coverage.backward import to_bytes
+from coverage.backward import to_bytes, rpartition
from backunittest import TestCase
from coveragetest import CoverageTest
@@ -189,5 +189,5 @@ class CoverageTestTest(CoverageTest):
executable = executable.split(":", 1)[1].strip()
self.assertEqual(executable, sys.executable)
environ = [l for l in out if "COV_FOOBAR" in l][0]
- _, _, environ = environ.rpartition(":")
+ _, _, environ = rpartition(environ, ":")
self.assertEqual(environ.strip(), "COV_FOOBAR = XYZZY")