Bug 2220255
| Summary: | F39FailsToInstall: python3-glymur | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fedora Fails To Install <fti-bugs> |
| Component: | python-glymur | Assignee: | Ben Beasley <code> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | code, mhroncok, neuro-sig, thrnciar, vanessaigwe1 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-glymur-0.12.7-3.fc39 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-11 20:54:55 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2135404, 2168842, 2168845 | ||
|
Description
Fedora Fails To Install
2023-07-05 19:12:52 UTC
=================================== FAILURES ===================================
_________________________ TestPrinting.test_exif_uuid __________________________
self = <tests.test_printing.TestPrinting testMethod=test_exif_uuid>
def test_exif_uuid(self):
"""
SCENARIO: A JP2 file has an Exif UUID box.
EXPECTED RESULT: Verify printing of Exif information.
"""
with open(self.temp_jp2_filename, mode='wb') as tfile:
with open(self.jp2file, 'rb') as ifptr:
tfile.write(ifptr.read())
b = BytesIO()
# UUID stuff at byte 0
# Exif leader at byte 24
# TIFF header at byte 30
# IFD start at byte 38
# IFD tags at byte 40
# tile offsets at byte 88 (40 bytes)
# IFD location 58
# Exif IFD start at byte 128
# IFD byte location 98
# Exif IFD tag at byte 130 (12 bytes)
# Write L, T, UUID identifier.
b.write(struct.pack('>I4s', 142, b'uuid'))
b.write(b'JpgTiffExif->JP2')
b.write(b'Exif\x00\x00')
# write the tiff header
xbuffer = struct.pack('<BBHI', 73, 73, 42, 8)
b.write(xbuffer)
# We will write just four tags.
b.write(struct.pack('<H', 4))
# The "Make" tag is tag no. 271.
b.write(struct.pack('<HHII', 256, 4, 1, 256))
b.write(struct.pack('<HHII', 257, 4, 1, 512))
b.write(struct.pack('<HHII', 324, 4, 10, 58))
b.write(struct.pack('<HHII', 34665, 4, 1, 98))
# write the tile offsets (fake)
tile_offsets = list(range(0, 100, 10))
b.write(struct.pack('<' + 'I' * 10, *tile_offsets))
# start writing the Exif IFD.
# We will write just one tag.
b.write(struct.pack('<H', 1))
b.write(struct.pack('<HHI4s', 271, 2, 3, b'HTC\x00'))
b.flush()
tfile.write(b.getvalue())
tfile.flush()
j = glymur.Jp2k(tfile.name)
actual = str(j.box[5])
expected = (
"UUID Box (uuid) @ (1135519, 142)\n"
" UUID: 4a706754-6966-6645-7869-662d3e4a5032 (EXIF)\n"
" UUID Data: OrderedDict([ ('ImageWidth', 256),\n"
" ('ImageLength', 512),\n"
" ( 'TileOffsets',\n"
" "
"array([ 0, 10, 20, ..., 70, 80, 90], dtype=uint32)),\n"
" ('ExifTag', OrderedDict([('Make', 'HTC')]))])"
)
> self.assertEqual(actual, expected)
E AssertionError: "UUID[304 chars] ('ExifTag', OrderedDict({'Make': 'HTC'}))])" != "UUID[304 chars] ('ExifTag', OrderedDict([('Make', 'HTC')]))])"
E UUID Box (uuid) @ (1135519, 142)
E UUID: 4a706754-6966-6645-7869-662d3e4a5032 (EXIF)
E UUID Data: OrderedDict([ ('ImageWidth', 256),
E ('ImageLength', 512),
E ( 'TileOffsets',
E array([ 0, 10, 20, ..., 70, 80, 90], dtype=uint32)),
E - ('ExifTag', OrderedDict({'Make': 'HTC'}))])
E ? ^ ^ ^
E + ('ExifTag', OrderedDict([('Make', 'HTC')]))])
E ? ^^ ^ ^^
tests/test_printing.py:1071: AssertionError
=========================== short test summary info ============================
FAILED tests/test_printing.py::TestPrinting::test_exif_uuid - AssertionError:...
================== 1 failed, 605 passed, 1 skipped in 51.41s ===================
Caused by https://github.com/python/cpython/pull/101661
This looks like a (In reply to Ben Beasley from comment #2) > This looks like a Abandonded comment, sorry. But I’ve proposed a workaround upstream and am working on a downstream build now. FEDORA-2023-2e5625c158 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2e5625c158 FEDORA-2023-2e5625c158 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. |