Skip to content

Commit

Permalink
Removed Win exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Dec 20, 2021
1 parent 499420b commit 685807d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,5 @@ def test_cli_ok(path):
"""Check if CLI exits with code 0 when no errors occur."""
runner = CliRunner()
result = runner.invoke(main_cli, [path, '-o', 'out.yaml', '-f', 'yaml'])
if sys.platform.startswith('win') and path == PDF_TWO_COLUMNS:
# TODO bug on Windows currently for PDF_TWO_COLUMNS:
# UnicodeEncodeError('charmap', '\uf0b7 8 1/2', 0, 1, 'character maps to <undefined>')
assert isinstance(result.exception, UnicodeEncodeError)
assert result.exit_code == 1
else:
assert result.exception is None
assert result.exit_code == 0
assert result.exception is None
assert result.exit_code == 0

0 comments on commit 685807d

Please sign in to comment.