tests/conftest.py: Work around apparent mypy issue.

Assertion on tuple length doesn't work?

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
Chris PeBenito 2024-10-28 11:48:41 -04:00
parent 4fa7e3ded8
commit 0a713c64b3
No known key found for this signature in database
GPG Key ID: C6363EF1C9697B14
1 changed files with 3 additions and 3 deletions

View File

@ -226,7 +226,7 @@ def compiled_policy(request: pytest.FixtureRequest) -> Iterable[setools.SELinuxP
kwargs = marker.kwargs if marker else {}
assert len(args) == 1
source_file = args[0]
source_file = args[0] # type: ignore
with tempfile.NamedTemporaryFile("w") as fd:
yield _do_compile(source_file, fd.name, mls=kwargs.get("mls", True),
@ -242,8 +242,8 @@ def policy_pair(request: pytest.FixtureRequest) -> \
kwargs = marker.kwargs if marker else {}
assert len(args) == 2
source_file_left = args[0]
source_file_right = args[1]
source_file_left = args[0] # type: ignore
source_file_right = args[1] # type: ignore
with tempfile.NamedTemporaryFile("w") as fd_left:
with tempfile.NamedTemporaryFile("w") as fd_right: