diff --git a/tests/test_setup.py b/tests/test_setup.py index eaae0166..7593b727 100644 --- a/tests/test_setup.py +++ b/tests/test_setup.py @@ -1,6 +1,6 @@ import pkgutil -import toml +import tomllib import scc @@ -19,7 +19,8 @@ def test_packages(self): pass # Load the packages from pyproject.toml - pyproject = toml.load("pyproject.toml") + with open("pyproject.toml", "rb") as file: + pyproject = tomllib.load(file) packages = pyproject["tool"]["setuptools"]["packages"] for importer, modname, ispkg in pkgutil.walk_packages(path=scc.__path__, prefix="scc.", onerror=lambda x: None):