Fix invalid isinstance type union in metadata hndler test
This commit is contained in:
parent
0bbfe84fd1
commit
3ea5a9ced2
|
|
@ -44,7 +44,7 @@ def test_read_image_metadata(x):
|
|||
assert handler.metadata == metadata
|
||||
assert isinstance(metadata, dict)
|
||||
|
||||
if isinstance(handler, JpegProcessor | PngProcessor):
|
||||
if isinstance(handler, (JpegProcessor, PngProcessor)):
|
||||
assert (
|
||||
handler.tags_to_delete is not None
|
||||
or handler.text_keys_to_delete is not None
|
||||
|
|
|
|||
Loading…
Reference in New Issue