Skip to content

Commit 07d3b5c

Browse files
author
Erlend E. Aasland
committed
Skip tests if serialize API is missing
1 parent 42f8cd5 commit 07d3b5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/sqlite3/test/dbapi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ def test_in_transaction_ro(self):
203203
self.cx.in_transaction = True
204204

205205

206+
@unittest.skipIf(hasattr(sqlite.Connection, "serialize") == False,
207+
"Serialize API missing")
206208
class SerializeTests(unittest.TestCase):
207209
def test_serialize_deserialize(self):
208210
with sqlite.connect(":memory:") as cx:
@@ -671,6 +673,8 @@ def run(con, errors):
671673
if len(errors) > 0:
672674
self.fail("\n".join(errors))
673675

676+
@unittest.skipIf(hasattr(sqlite.Connection, "serialize") == False,
677+
"Serialize API missing")
674678
def test_con_serialize(self):
675679
def run(con, err):
676680
try:

0 commit comments

Comments
 (0)