diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-29 09:45:42 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-29 14:14:15 -0500 |
commit | e6a810246f0316f6518d54148b3303c9b2f47f57 (patch) | |
tree | e3676f4be0bac4875d21f51cfb2e221500269863 /coverage/sqldata.py | |
parent | 6e02043ca68d7c00962247a41c6f9183fd556713 (diff) | |
download | python-coveragepy-git-e6a810246f0316f6518d54148b3303c9b2f47f57.tar.gz |
test: skip tests on py 3.11.0a4 that are failing in metacov
This specific set of circumstances was triggering
https://bugs.python.org/issue44088
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r-- | coverage/sqldata.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py index e136c7f6..5e27cd85 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -497,6 +497,9 @@ class CoverageData(SimpleReprMixin): self._set_context_id() for filename, arcs in arc_data.items(): file_id = self._file_id(filename, add=True) + from coverage import env + if env.PYVERSION == (3, 11, 0, "alpha", 4, 0): + arcs = [(a, b) for a, b in arcs if a is not None and b is not None] data = [(file_id, self._current_context_id, fromno, tono) for fromno, tono in arcs] con.executemany( "insert or ignore into arc " + |