diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-19 21:20:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-19 21:20:29 -0500 |
commit | fc38bf8526cb1717968a1958439da5fae4768375 (patch) | |
tree | 60a2a5097868dbe63196b349ec222e92a9003f03 /test/test_testing.py | |
parent | 05dd78ed22cc997d7481683cab012b73bf5d710a (diff) | |
download | python-coveragepy-git-fc38bf8526cb1717968a1958439da5fae4768375.tar.gz |
Retro-fit onto 2.3 and 2.4 again.
Diffstat (limited to 'test/test_testing.py')
-rw-r--r-- | test/test_testing.py | 4 |
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") |