Skip to content

Commit

Permalink
Update tests to match new expectation in more_itertools 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 5, 2018
1 parent f3f8ecf commit 3a3d73e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jaraco/itertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,13 +879,13 @@ def always_iterable(item):
None, an empty iterable is returned.
>>> always_iterable([1,2,3])
[1, 2, 3]
<list_iterator...>
>>> always_iterable('foo')
('foo',)
<tuple_iterator...>
>>> always_iterable(None)
()
<tuple_iterator...>
>>> always_iterable(range(10))
range(0, 10)
<range_iterator...>
>>> def _test_func(): yield "I'm iterable"
>>> print(next(always_iterable(_test_func())))
I'm iterable
Expand Down

0 comments on commit 3a3d73e

Please sign in to comment.