diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2019-04-21 18:17:27 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-04-21 18:17:27 -0400 |
| commit | 822953106a01aaf1f88bc5e5a63fe693d42c0c00 (patch) | |
| tree | b5a93ae8239dd6ee18748ef98ca1f46a90245f0d /tests/coveragetest.py | |
| parent | 4c86353020bea6dfd3f13780501f2083a0bcaeb7 (diff) | |
| download | python-coveragepy-git-822953106a01aaf1f88bc5e5a63fe693d42c0c00.tar.gz | |
Prefer assertRaisesRegex to assertRaises
Diffstat (limited to 'tests/coveragetest.py')
| -rw-r--r-- | tests/coveragetest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index c0a8fb5a..ddade452 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -358,7 +358,7 @@ class CoverageTest( def assert_file_count(self, pattern, count): """Assert that there are `count` files matching `pattern`.""" - files = glob.glob(pattern) + files = sorted(glob.glob(pattern)) msg = "There should be {} files matching {!r}, but there are these: {}" msg = msg.format(count, pattern, files) self.assertEqual(len(files), count, msg) |
