summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-03-16 07:27:47 -0400
committerNed Batchelder <ned@nedbatchelder.com>2023-03-16 07:27:47 -0400
commit3d8bf60186c8ac5361d5183d4f848a87abcb3951 (patch)
tree627e2086ac097a44c824cf7a6687a3c74fa9b294
parent2f0f904759b5e30c88d9a5fdcb78bb2340e981d8 (diff)
downloadpython-coveragepy-git-nedbat/wtf-sqlite.tar.gz
temp: collect information about sqlite journal_modenedbat/wtf-sqlite
-rw-r--r--.github/workflows/testsuite.yml12
-rw-r--r--coverage/sqldata.py3
2 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml
index e560325c..4af6e190 100644
--- a/.github/workflows/testsuite.yml
+++ b/.github/workflows/testsuite.yml
@@ -79,13 +79,13 @@ jobs:
- name: "Run tox for ${{ matrix.python-version }}"
run: |
- python -m tox -- -rfsEX
+ python -m tox -- -rfsEX -n 0 --maxfail=1
- - name: "Retry tox for ${{ matrix.python-version }}"
- if: failure()
- run: |
- # `exit 1` makes sure that the job remains red with flaky runs
- python -m tox -- -rfsEX --lf -vvvvv && exit 1
+ #- name: "Retry tox for ${{ matrix.python-version }}"
+ # if: failure()
+ # run: |
+ # # `exit 1` makes sure that the job remains red with flaky runs
+ # python -m tox -- -rfsEX --lf -vvvvv && exit 1
# This job aggregates test results. It's the required check for branch protection.
# https://github.com/marketplace/actions/alls-green#why
diff --git a/coverage/sqldata.py b/coverage/sqldata.py
index 3e47b4d8..5c4690e6 100644
--- a/coverage/sqldata.py
+++ b/coverage/sqldata.py
@@ -1132,7 +1132,10 @@ class SqliteDb(AutoReprMixin):
# This pragma makes writing faster. It disables rollbacks, but we never need them.
# PyPy needs the .close() calls here, or sqlite gets twisted up:
# https://bitbucket.org/pypy/pypy/issues/2872/default-isolation-mode-is-different-on
+ jmode0 = self.execute_one("pragma journal_mode")
self.execute_void("pragma journal_mode=off")
+ jmode1 = self.execute_one("pragma journal_mode")
+ raise Exception(f"{sys.version.split()[0]}: {jmode0!r} -> {jmode1!r}")
if self.execute_one("pragma journal_mode") != "off":
# Some instances of Sqlite refuse to disable journal mode.
# Switching to memory mode prevents journal files from being written,