diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/backunittest.py | 2 | ||||
-rw-r--r-- | tests/coveragetest.py | 3 | ||||
-rw-r--r-- | tests/test_collector.py | 1 | ||||
-rw-r--r-- | tests/test_config.py | 1 | ||||
-rw-r--r-- | tests/test_files.py | 1 | ||||
-rw-r--r-- | tests/test_testing.py | 5 |
6 files changed, 3 insertions, 10 deletions
diff --git a/tests/backunittest.py b/tests/backunittest.py index 30da78eb..019e811c 100644 --- a/tests/backunittest.py +++ b/tests/backunittest.py @@ -2,8 +2,6 @@ import difflib, re, sys, unittest -from coverage.backward import set # pylint: disable=W0622 - def _need(method): """Do we need to define our own `method` method?""" diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 9f7c79c9..4fe81910 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -4,8 +4,7 @@ import glob, imp, os, random, shlex, shutil, sys, tempfile, textwrap import atexit import coverage -from coverage.backward import sorted, StringIO # pylint: disable=W0622 -from coverage.backward import to_bytes +from coverage.backward import StringIO, to_bytes from coverage.control import _TEST_NAME_FILE from tests.backtest import run_command from tests.backunittest import TestCase diff --git a/tests/test_collector.py b/tests/test_collector.py index 2714398a..af3814f3 100644 --- a/tests/test_collector.py +++ b/tests/test_collector.py @@ -4,7 +4,6 @@ import re import coverage from coverage.backward import StringIO -from coverage.backward import set # pylint: disable=W0622 from tests.coveragetest import CoverageTest diff --git a/tests/test_config.py b/tests/test_config.py index c44fa80c..0862d6b2 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- """Test the config file handling for coverage.py""" -import sys import coverage from coverage.misc import CoverageException diff --git a/tests/test_files.py b/tests/test_files.py index b24e8b8b..230cd092 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -4,7 +4,6 @@ import os, os.path from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher from coverage.files import PathAliases, find_python_files, abs_file -from coverage.backward import set # pylint: disable=W0622 from coverage.misc import CoverageException from tests.coveragetest import CoverageTest 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") |