skip verbose tests for windows as there are encoding problems

This commit is contained in:
scito
2022-12-31 20:42:40 +01:00
parent 496564a605
commit e311386a15
3 changed files with 8 additions and 1 deletions

View File

@@ -171,7 +171,8 @@ Type: totp
self.assertEqual(count_files_in_dir('testout/qr'), 6)
def test_extract_verbose(self) -> None:
if sys.implementation.name == 'pypy': self.skipTest("Encoding problems in verbose mode in pypy.")
if sys.implementation.name == 'pypy' or sys.platform.startswith("win"):
self.skipTest("Avoid encoding problems")
out = io.StringIO()
with redirect_stdout(out):
extract_otp_secrets.main(['-v', 'example_export.txt'])