Checking the output of an unordered container (such as dict) fails because there are multiple ordering options. For example, this simple example can be written as this:
>>> dict(x=1, y=2)
{'y': 2, 'x': 1}
or this:
>>> dict(x=1, y=2)
{'x': 1, 'y': 2}
This is a pain when you want to doctest the documentation. Most of the time I avoid doing this either by rewriting the example using another container or adding a # doctest: +SKIP
.
But this is inconvenient. Is there another doctest option in Sphinx that compares containers by content?