Skip to content

Commit

Permalink
Fix DeprecationWarning
Browse files Browse the repository at this point in the history
	'pkgutil.find_loader' is deprecated and slated for removal
	in Python 3.14; use importlib.util.find_spec() instead
  • Loading branch information
DimitriPapadopoulos committed Aug 10, 2024
1 parent 8749820 commit 4aee460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numcodecs/tests/test_entrypoints_backport.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import importlib
import os.path
import pkgutil
import sys
from multiprocessing import Process

import pytest

import numcodecs.registry

if not pkgutil.find_loader("importlib_metadata"): # pragma: no cover
if not importlib.util.find_spec("importlib_metadata").loader: # pragma: no cover
pytest.skip(
"This test module requires importlib_metadata to be installed",
allow_module_level=True,
Expand Down

0 comments on commit 4aee460

Please sign in to comment.