Skip to content

Commit

Permalink
Change doctest to work in py2/3 due to difference in reprs
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk committed Jan 26, 2018
1 parent 8b0fa6b commit 184df19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multipledispatch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def expand_tuples(L):
>>> expand_tuples([1, 2])
[(1, 2)]
>>> expand_tuples([1, typing.Optional[str]])
[(1, <class 'str'>), (1, <class 'NoneType'>)]
>>> expand_tuples([1, typing.Optional[str]]) #doctest: +ELLIPSIS
[(1, <... 'str'>), (1, <... 'NoneType'>)]
"""
if not L:
return [()]
Expand Down

0 comments on commit 184df19

Please sign in to comment.