diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_metadata.py | 6 |
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) |
