We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrderedDict
In Python 3.12, OrderedDict has changed its repr to use regular dictionary formatting instead of pairs of keys and values. See python/cpython#101446 / python/cpython#101661.
repr
As a result, we have a few doctests failing:
File "../env/lib/python3.12/site-packages/dimod/reference/composites/tracking.py", line ?, in default Failed example: sampler.input Expected: OrderedDict([('h', {'a': -1}), ('J', {('a', 'b'): 1}), ('num_reads', 5)]) Got: OrderedDict({'h': {'a': -1}, 'J': {('a', 'b'): 1}, 'num_reads': 5}) ********************************************************************** File "../env/lib/python3.12/site-packages/dimod/reference/composites/tracking.py", line ?, in default Failed example: sampler.input Expected: OrderedDict([('Q', {('a', 'b'): 1})]) Got: OrderedDict({'Q': {('a', 'b'): 1}})
The text was updated successfully, but these errors were encountered:
Run doctests on py311 to prevent failures due to OrderedDict repr change
0dacf2f
See dwavesystems/dimod#1395.
arcondello
Successfully merging a pull request may close this issue.
In Python 3.12,
OrderedDict
has changed itsrepr
to use regular dictionary formatting instead of pairs of keys and values. See python/cpython#101446 / python/cpython#101661.As a result, we have a few doctests failing:
The text was updated successfully, but these errors were encountered: