Skip to content

Commit

Permalink
Restrict cancelling to 3.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Nov 10, 2023
1 parent 266fa8b commit e793bf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import collections
import inspect
import logging
import sys

import pytest
import zigpy.config
Expand Down Expand Up @@ -761,7 +762,9 @@ def send_network_state(
task = api._data_poller_task
api.close()
assert api._data_poller_task is None
assert task.cancelling()

if sys.version_info >= (3, 11):
assert task.cancelling()


async def test_get_device_state(api, mock_command_rsp):
Expand Down

0 comments on commit e793bf8

Please sign in to comment.