BUG/TEST: Dict key order isn't guaranteed.

This commit is contained in:
Scott Sanderson
2016-03-28 10:21:57 -04:00
parent c6e58af51b
commit 92feaa3a7d
+3 -2
View File
@@ -74,8 +74,9 @@ def dzip_exact(*dicts):
Example
-------
>>> dzip_exact({'a': 1, 'b': 2}, {'a': 3, 'b': 4})
{'a': (1, 3), 'b': (2, 4)}
>>> result = dzip_exact({'a': 1, 'b': 2}, {'a': 3, 'b': 4})
>>> result == {'a': (1, 3), 'b': (2, 4)}
True
"""
if not same(*map(viewkeys, dicts)):
raise ValueError(