summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Schütz <mail@dotlambda.de>2023-02-27 23:21:40 -0800
committerÁrni Dagur <arni@dagur.eu>2023-03-28 15:40:39 +0200
commit7597cd0b841a0ede22ff4cec6b4b91fb7d26a805 (patch)
treeaff2dc68f269a77fad5c418d73262411eb6c7efa /tests
parente8c923f69388dcff2c7805bec2269db2cc61d0c4 (diff)
PEP 621 compatibility
Diffstat (limited to 'tests')
-rw-r--r--tests/test_metadata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_metadata.py b/tests/test_metadata.py
index 440d560..62152f5 100644
--- a/tests/test_metadata.py
+++ b/tests/test_metadata.py
@@ -57,10 +57,10 @@ def test_required_python_version():
57 Make sure that the Python interpreter we're running this test suite on 57 Make sure that the Python interpreter we're running this test suite on
58 falls into the required Python range. 58 falls into the required Python range.
59 """ 59 """
60 with open("Cargo.toml", encoding="utf-8") as f: 60 with open("pyproject.toml", encoding="utf-8") as f:
61 cargo_toml = toml.loads(f.read()) 61 pyproject_toml = toml.loads(f.read())
62 62
63 required_python = cargo_toml["package"]["metadata"]["maturin"]["requires-python"] 63 required_python = pyproject_toml["project"]["requires-python"]
64 assert required_python.startswith(">=") 64 assert required_python.startswith(">=")
65 required_python = required_python[2:] 65 required_python = required_python[2:]
66 assert get_current_python_version() >= parse_version(required_python) 66 assert get_current_python_version() >= parse_version(required_python)