EEE
======================================================================
ERROR: test_mirror_count (test.TestAlternatingGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140415-23173-168ksiq/test.py", line 12, in test_mirror_count
[next(mirror_count) for i in range(1000)])
File "/tmp/d20140415-23173-168ksiq/test.py", line 12, in <listcomp>
[next(mirror_count) for i in range(1000)])
File "/tmp/d20140415-23173-168ksiq/solution.py", line 4, in alternate
elem = next(it, sentinel)
TypeError: 'function' object is not an iterator
======================================================================
ERROR: test_with_finishing_iterable (test.TestAlternatingGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140415-23173-168ksiq/test.py", line 18, in test_with_finishing_iterable
self.assertEqual(list(alternator), ["He's coming in ..", 3,
File "/tmp/d20140415-23173-168ksiq/solution.py", line 4, in alternate
elem = next(it, sentinel)
TypeError: 'function' object is not an iterator
======================================================================
ERROR: test_with_seven_iterables (test.TestAlternatingGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140415-23173-168ksiq/test.py", line 32, in test_with_seven_iterables
[next(alternator) for i in range(49)])
File "/tmp/d20140415-23173-168ksiq/test.py", line 32, in <listcomp>
[next(alternator) for i in range(49)])
File "/tmp/d20140415-23173-168ksiq/solution.py", line 4, in alternate
elem = next(it, sentinel)
TypeError: 'function' object is not an iterator
----------------------------------------------------------------------
Ran 3 tests in 0.004s
FAILED (errors=3)