summaryrefslogtreecommitdiff
path: root/tests/test_testing.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-19 21:35:33 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-19 21:35:33 -0400
commitc7b1c99b06a453af879f4768e347ac89000cce42 (patch)
tree2b1f40594ee9c86a478e298d03bb60f2107eb8de /tests/test_testing.py
parentae983a48b6fe5b006f5f9e9899efc3778ac2b1b1 (diff)
downloadpython-coveragepy-git-c7b1c99b06a453af879f4768e347ac89000cce42.tar.gz
Get rid of our backward implementation of set, sorted, reversed, and rpartition.
--HG-- branch : 4.0
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r--tests/test_testing.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py
index c56d8110..c6d51ba5 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -2,11 +2,10 @@
"""Tests that our test infrastructure is really working!"""
import os, sys
-from coverage.backward import to_bytes, rpartition
+from coverage.backward import to_bytes
from tests.backunittest import TestCase
from tests.coveragetest import CoverageTest
-from coverage.backward import set # pylint: disable=W0622
class TestingTest(TestCase):
"""Tests of helper methods on `backunittest.TestCase`."""
@@ -188,7 +187,7 @@ class CoverageTestTest(CoverageTest):
executable = executable.split(":", 1)[1].strip()
self.assertTrue(same_python_executable(executable, sys.executable))
environ = [l for l in out if "COV_FOOBAR" in l][0]
- _, _, environ = rpartition(environ, ":")
+ _, _, environ = environ.rpartition(":")
self.assertEqual(environ.strip(), "COV_FOOBAR = XYZZY")