summaryrefslogtreecommitdiff
path: root/test/test_testing.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-12-19 21:20:29 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-12-19 21:20:29 -0500
commit90170a258e53eb7fbe964ddc2dcf7d85718cd0bb (patch)
treef9c8866abb2a3072e6f15e3e68182d841bf44b89 /test/test_testing.py
parent0d302a85d92378b74e953c43df30ba094811c908 (diff)
downloadpython-coveragepy-90170a258e53eb7fbe964ddc2dcf7d85718cd0bb.tar.gz
Retro-fit onto 2.3 and 2.4 again.
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 c8672e4..fcbffcd 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")