We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f0e725 commit a883f91Copy full SHA for a883f91
tests/tools/file_editor/test_file_validation.py
@@ -96,8 +96,5 @@ def test_validate_image_file(tmp_path):
96
97
assert is_binary(str(image_file))
98
99
- # Images are not supported and should be detected as binary
100
- with pytest.raises(FileValidationError) as exc_info:
101
- editor.validate_file(image_file)
102
-
103
- assert "file appears to be binary" in str(exc_info.value).lower()
+ # Images are not supported, so no exception should be raised
+ editor.validate_file(image_file)
0 commit comments