fix pytest.skipif

This commit is contained in:
scito 2022-12-31 21:16:19 +01:00
parent 1af6fe3161
commit 739ae4c012

View File

@ -351,7 +351,7 @@ def test_normalize_bytes() -> None:
'Before\\\\302\\\\277\\\\303\nname: enc: \\302\\277\\303\\244\\303\\204\\303\\251\\303\\211?\nAfter') == 'Before\\\\302\\\\277\\\\303\nname: enc: ¿äÄéÉ?\nAfter' 'Before\\\\302\\\\277\\\\303\nname: enc: \\302\\277\\303\\244\\303\\204\\303\\251\\303\\211?\nAfter') == 'Before\\\\302\\\\277\\\\303\nname: enc: ¿äÄéÉ?\nAfter'
@pytest.mark.skip(sys.platform.startswith("win"), reason="Avoid encoding problems") @pytest.mark.skipif(sys.platform.startswith("win"), reason="Avoid encoding problems")
def test_extract_verbose(capsys: pytest.CaptureFixture[str], relaxed: bool) -> None: def test_extract_verbose(capsys: pytest.CaptureFixture[str], relaxed: bool) -> None:
# Act # Act
extract_otp_secrets.main(['-v', 'example_export.txt']) extract_otp_secrets.main(['-v', 'example_export.txt'])