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:
parent
4fa7e3ded8
commit
0a713c64b3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue