diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 07:16:56 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 07:16:56 -0500 |
commit | 843de4ea235e7eee3ff24a39a2f8b14da9ef0db0 (patch) | |
tree | 8a4d8435595334318b5e38ef42da803e512acd4f /tests/test_collector.py | |
parent | 4fc64a97ce779c2d6bb972f0003b9b9f00e62c3a (diff) | |
download | python-coveragepy-git-843de4ea235e7eee3ff24a39a2f8b14da9ef0db0.tar.gz |
refactor: unittest2pytest -w tests
One step of moving to pure pytest tests.
Diffstat (limited to 'tests/test_collector.py')
-rw-r--r-- | tests/test_collector.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_collector.py b/tests/test_collector.py index f7e8a4c4..53d7f175 100644 --- a/tests/test_collector.py +++ b/tests/test_collector.py @@ -46,5 +46,5 @@ class CollectorTest(CoverageTest): # Double-check that our files were checked. abs_files = {os.path.abspath(f) for f in should_trace_hook.filenames} - self.assertIn(os.path.abspath("f1.py"), abs_files) - self.assertIn(os.path.abspath("f2.py"), abs_files) + assert os.path.abspath("f1.py") in abs_files + assert os.path.abspath("f2.py") in abs_files |