Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pkgutil

import toml
import tomllib

import scc

Expand All @@ -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):
Expand Down