Skip to content

Adapt to OrderedDict repr change in Python 3.12 - #621

Closed
musicinmybrain wants to merge 1 commit into
quintusdias:masterfrom
musicinmybrain:py3.12
Closed

Adapt to OrderedDict repr change in Python 3.12#621
musicinmybrain wants to merge 1 commit into
quintusdias:masterfrom
musicinmybrain:py3.12

Conversation

@musicinmybrain

Copy link
Copy Markdown
Contributor

python/cpython#101661

Fixes, on Python 3.12.0b3:

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 ===================

Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=2220255

@quintusdias

quintusdias commented Jul 11, 2023 via email

Copy link
Copy Markdown
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants