Skip to content

Commit

Permalink
Fix test for 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Oct 27, 2023
1 parent 3eff542 commit f1a4544
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ubelt/util_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,11 @@ def dict_union(*args):
>>> import ubelt as ub
>>> result = ub.dict_union({'a': 1, 'b': 1}, {'b': 2, 'c': 2})
>>> assert result == {'a': 1, 'b': 2, 'c': 2}
>>> ub.dict_union(
>>> output = ub.dict_union(
>>> ub.odict([('a', 1), ('b', 2)]),
>>> ub.odict([('c', 3), ('d', 4)]))
OrderedDict([('a', 1), ('b', 2), ('c', 3), ('d', 4)])
>>> print(ub.urepr(output, nl=0))
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
>>> ub.dict_union()
{}
"""
Expand Down

0 comments on commit f1a4544

Please sign in to comment.