Skip to content

Commit

Permalink
Skip tests if serialize API is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Erlend E. Aasland committed Jun 16, 2021
1 parent 42f8cd5 commit 07d3b5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/sqlite3/test/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ def test_in_transaction_ro(self):
self.cx.in_transaction = True


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

@unittest.skipIf(hasattr(sqlite.Connection, "serialize") == False,
"Serialize API missing")
def test_con_serialize(self):
def run(con, err):
try:
Expand Down

0 comments on commit 07d3b5c

Please sign in to comment.