Commits

Victor Stinner committed 03b8d24

Fix inverseDict() doctest for Python 3 (for randomized hash)

Comments (0)

Files changed (1)

     """
     Inverse a dictionary.
 
-    >>> inverseDict({"0x10": 16, "0x20": 32})
-    {32: '0x20', 16: '0x10'}
+    >>> inverseDict({"0x10": 16, "0x20": 32}) == {32: '0x20', 16: '0x10'}
+    True
     """
     result = {}
     for key, value in data.items():