Commits

Jason R. Coombs  committed 9dda183

Expanded test on always_iterable

  • Participants
  • Parent commits 51d2679

Comments (0)

Files changed (1)

File jaraco/util/itertools.py

 	(None,)
 	>>> always_iterable(xrange(10))
 	xrange(10)
+	>>> def _test_func(): yield "I'm iterable"
+	>>> print(next(always_iterable(_test_func())))
+	I'm iterable
 	"""
 	if isinstance(item, basestring) or not hasattr(item, '__iter__'):
 		item = item,