diff options
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 " + |