Skip to content

Commit 610cf5d

Browse files
committed
1 parent 389e31c commit 610cf5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/test_importing.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def test_package(database, import_name):
9898
def test_package_resources(database, import_name):
9999
module = importlib.import_module(import_name)
100100

101-
# Python 3.11 and 3.12 (but not 3.13) throw DeprecationWarning when calling
101+
# Between 3.11 and 3.12.9, Python would throw DeprecationWarning when calling
102102
# `importlib.resources.read_text()` and `importlib.resources.read_bytes()`.
103103
# These are caught, confirmed to match expectations, and wholly ignored.
104104
ignore_tempermental_warnings = contextlib.nullcontext()
105-
if sys.version_info[:2] in ((3, 11), (3, 12)):
105+
if (3, 11) < sys.version_info[:3] <= (3, 12, 9):
106106
ignore_tempermental_warnings = pytest.warns(
107107
DeprecationWarning,
108108
match=(

0 commit comments

Comments
 (0)