Fix regex in compression level validation test
Updated the regex pattern in the compression level validation test to escape the dot character, ensuring correct matching of invalid input '1.5'.
This commit is contained in:
1 parent
e5ad0336f3
commit
2cb2b9eaa7
1 file changed
+1
-1
@@ -96,7 +96,7 @@ class TestUtilityFunctions:
|
||||
validate_compression_level("abc")
|
||||
|
||||
with pytest.raises(
|
||||
argparse.ArgumentTypeError, match="Invalid compression level: '1.5'"
|
||||
argparse.ArgumentTypeError, match=r"Invalid compression level: '1\\.5'"
|
||||
):
|
||||
validate_compression_level("1.5")
|
||||
|
||||
|
||||
Reference in new issue
Block a user