Skip to content

Commit

Permalink
Fix: Fix failing compression argument parser test for CI
Browse files Browse the repository at this point in the history
It seems that with the runner and Python 3.12 the compression argument
is uses as a string. Therefore don't include the actual passed argument
when testing the error output.
  • Loading branch information
bjoernricks committed Jan 7, 2025
1 parent 1584eb3 commit 5027ea5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,7 @@ def test_compression_level(self):
parser.parse_arguments(["--compression-level", "10"])

self.assertIn(
"error: argument --compression-level: invalid choice: 10 "
"(choose from 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)",
"error: argument --compression-level: invalid choice:",
f.getvalue(),
)

Expand Down

0 comments on commit 5027ea5

Please sign in to comment.