summaryrefslogtreecommitdiff
path: root/test/test_testing.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-12-20 07:02:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-12-20 07:02:36 -0500
commit2827bb6e678c1233fc8d54961a39c37c3d78b908 (patch)
tree6b749001ff88fa017b94bed041443fcb21d9f0ba /test/test_testing.py
parent741e21203b77547906babf0f04edf7eb5dedf723 (diff)
parentfc38bf8526cb1717968a1958439da5fae4768375 (diff)
downloadpython-coveragepy-git-2827bb6e678c1233fc8d54961a39c37c3d78b908.tar.gz
Merged
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")