diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-06 07:21:13 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-06 07:38:49 -0500 |
commit | 2e4b2977c78e254797d07c39e933fd535d4b0cec (patch) | |
tree | 568340a9837fabafee6a818db905d8ec15112d8d /tests/test_api.py | |
parent | b7160a896252bb92ffe921a37e3cde98c5cb78b9 (diff) | |
download | python-coveragepy-git-2e4b2977c78e254797d07c39e933fd535d4b0cec.tar.gz |
refactor: remove unittest.assertCountEqual
Another step toward removing unittest.TestCase.
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index ea625ff1..0c1c9035 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -23,6 +23,7 @@ from coverage.files import abs_file, relative_filename from coverage.misc import CoverageException from tests.coveragetest import CoverageTest, StopEverythingMixin, TESTS_DIR, UsingModulesMixin +from tests.helpers import assert_count_equal class ApiTest(CoverageTest): @@ -43,7 +44,7 @@ class ApiTest(CoverageTest): """Assert that the files here are `files`, ignoring the usual junk.""" here = os.listdir(".") here = self.clean_files(here, ["*.pyc", "__pycache__", "*$py.class"]) - self.assertCountEqual(here, files) + assert_count_equal(here, files) def test_unexecuted_file(self): cov = coverage.Coverage() |