diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-31 16:10:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-02 09:36:13 -0400 |
commit | fcf665bb4db940dc36d036bb09cbda0bb1ac39af (patch) | |
tree | ae296f636c8bd9c4ac449e10216f5174f2175a38 | |
parent | 206f13aa721ed166bdb0f9e2f91e640e27201d71 (diff) | |
download | python-coveragepy-git-fcf665bb4db940dc36d036bb09cbda0bb1ac39af.tar.gz |
SQLite on windows has slightly different messages
-rw-r--r-- | tests/test_api.py | 2 | ||||
-rw-r--r-- | tests/test_process.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 4d6ba929..b44a5d34 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -375,7 +375,7 @@ class ApiTest(CoverageTest): r"Couldn't read data from '.*\.coverage\.foo': " r"CoverageException: Doesn't seem to be a coverage\.py data file" r"|" # SQL message: - r"Couldn't use data file '.*\.coverage\.foo': file is encrypted or is not a database" + r"Couldn't use data file '.*\.coverage\.foo': file (is encrypted or )?is not a database" r")" ) with self.assert_warnings(cov, [warning_regex]): diff --git a/tests/test_process.py b/tests/test_process.py index 6174b9f7..626c8094 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -132,7 +132,7 @@ class ProcessTest(CoverageTest): r"CoverageException: Doesn't seem to be a coverage\.py data file" r"|" # SQL message: r"Coverage.py warning: Couldn't use data file '.*\.coverage\.bad': " - r"file is encrypted or is not a database" + r"file (is encrypted or )?is not a database" r")" ) self.assertRegex(out, warning_regex) @@ -170,7 +170,7 @@ class ProcessTest(CoverageTest): r"CoverageException: Doesn't seem to be a coverage\.py data file" r"|" # SQL message: r"Coverage.py warning: Couldn't use data file '.*\.coverage.bad{0}': " - r"file is encrypted or is not a database" + r"file (is encrypted or )?is not a database" r")" .format(n) ) |