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 f442ae8 commit 66ea27cCopy full SHA for 66ea27c
Tests/test_file_libtiff.py
@@ -4,7 +4,6 @@
4
import os
5
import re
6
from collections import namedtuple
7
-from ctypes import c_float
8
9
import pytest
10
@@ -168,14 +167,11 @@ def test_write_metadata(self, tmp_path):
168
167
val = original[tag]
169
if tag.endswith("Resolution"):
170
if legacy_api:
171
- assert (
172
- c_float(val[0][0] / val[0][1]).value
173
- == c_float(value[0][0] / value[0][1]).value
+ assert val[0][0] / val[0][1] == (
+ 4294967295 / 113653537
174
), f"{tag} didn't roundtrip"
175
else:
176
177
- c_float(val).value == c_float(value).value
178
- ), f"{tag} didn't roundtrip"
+ assert val == 37.79000115940079, f"{tag} didn't roundtrip"
179
180
assert val == value, f"{tag} didn't roundtrip"
181
0 commit comments