Skip to content

Commit

Permalink
Fix test_pep517_parsing_checks_requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Aug 4, 2024
1 parent 148c153 commit 1f2dab8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/test_pep517.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from pathlib import Path
from textwrap import dedent
from typing import Tuple

import pytest

Expand Down Expand Up @@ -73,12 +74,12 @@ def test_disabling_pep517_invalid(shared_data: TestData, source: str, msg: str)
@pytest.mark.parametrize(
"spec", [("./foo",), ("git+https://example.com/pkg@dev#egg=myproj",)]
)
def test_pep517_parsing_checks_requirements(tmpdir: Path, spec: str) -> None:
def test_pep517_parsing_checks_requirements(tmpdir: Path, spec: Tuple[str]) -> None:
tmpdir.joinpath("pyproject.toml").write_text(
dedent(
f"""
[build-system]
requires = [{spec!r}]
requires = [{spec[0]!r}]
build-backend = "foo"
"""
)
Expand Down

0 comments on commit 1f2dab8

Please sign in to comment.