Skip to content

Commit 308a4a7

Browse files
Workaround mypy AssertionError (#1959)
1 parent 651e1ae commit 308a4a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/util/test_pep517.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,11 @@ def test_pep517_bad_message(frontend_setuptools: SubprocessFrontend, tmp_path: P
140140
assert "Backend: incorrect request to backend: bytearray(b'{{')" in err
141141

142142

143-
def test_pep517_result_missing(frontend_setuptools: SubprocessFrontend, tmp_path: Path, mocker: MockerFixture) -> None:
144-
class _Result(NamedTuple):
145-
name: str
143+
class _Result(NamedTuple):
144+
name: str
145+
146146

147+
def test_pep517_result_missing(frontend_setuptools: SubprocessFrontend, tmp_path: Path, mocker: MockerFixture) -> None:
147148
@contextmanager
148149
def named_temporary_file(prefix: str) -> Iterator[_Result]:
149150
write = S_IWUSR | S_IWGRP | S_IWOTH

0 commit comments

Comments
 (0)