From e6a810246f0316f6518d54148b3303c9b2f47f57 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 29 Jan 2022 09:45:42 -0500 Subject: 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 --- coverage/sqldata.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coverage/sqldata.py') 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 " + -- cgit v1.2.1