forked from smarnach/pyexiftool
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Trying to debug a pyexiftool issue on Windows, to which I don't have access, I'm basically trying to run this, in tobix/pywine:
def test_exiftool_works_on_all_images():
with ExifToolHelper(executable="./exiftool.exe") as et:
for d in et.get_metadata("./test.tiff"):
assert len(d) > 0
# Also test ExifTool.execute_json
with ExifTool(executable="./exiftool.exe") as eftl:
d = eftl.execute_json("./test.tiff")
assert len(d) > 0
I run this in the following command:
xvfb-run sh -c "wine pytest"
With various print
s and pytest
options, I can see that the get_metadata
call works, and that assert len(d) > 0
passes, but the code never goes past the end of the with
block. In other words, it hangs in .terminate()
, and never goes to test ExifTool.
Now. If I add a import pdb; pdb.set_trace()
as first line in the function, and hit c
when prompted, it works. What am I doing wrong?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested