Skip to content

Commit d17e103

Browse files
committed
API calls only in 3.12
1 parent e00d657 commit d17e103

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_database.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,12 @@ async def test_database_misc_methods(
174174
response = await sys_db.request(request)
175175
assert json.loads(response.raw_body) == 1
176176

177-
# API calls
178-
with pytest.raises(ServerApiCallsError):
179-
await bad_db.api_calls()
180-
result = await sys_db.api_calls()
181-
assert isinstance(result, dict)
177+
if db_version >= version.parse("3.12.0"):
178+
# API calls
179+
with pytest.raises(ServerApiCallsError):
180+
await bad_db.api_calls()
181+
result = await sys_db.api_calls()
182+
assert isinstance(result, dict)
182183

183184

184185
@pytest.mark.asyncio

0 commit comments

Comments
 (0)