Skip to content

VarDictionary doctests broken for python3.12 #557

@peverwhee

Description

@peverwhee

Description

The VarDictionary doctests are failing because of this change in python3.12:

gh-101446: Change repr of collections.OrderedDict to use regular dictionary formating instead of pairs of keys and values

Steps to Reproduce

Run the doctests overall or for only metavar.py

Additional Context

Here is the difference:

Expected:
VarDictionary(baz, [('hi_mom', <metavar.Var hi_mom: foo at 0x...>)])
Got:
VarDictionary(baz, {'hi_mom': <metavar.Var hi_mom: foo at 0x7f6c73e92990>})

Need to decide whether to move away from using the string representations of the base python classes (OrderedDict, etc) so we're unaffected by this. Or if we need to update the doctests themselves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor issues describing bugs, or PRs fixing bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions