From 0f7f262484c24b9bcecb4fd7f539e8a176dde55d 2018-09-01 21:12:24 From: Matthias Bussonnier Date: 2018-09-01 21:12:24 Subject: [PATCH] Actually run some tests. The ipdoctest was relying on the side-effects of applying `map()` which is lazy since Python3. Moving to an actual for loop. Closes #11276 --- diff --git a/IPython/testing/ipunittest.py b/IPython/testing/ipunittest.py index cb5060f..aab3861 100644 --- a/IPython/testing/ipunittest.py +++ b/IPython/testing/ipunittest.py @@ -146,7 +146,8 @@ class Doc2UnitTester(object): def test(self): # Make a new runner per function to be tested runner = DocTestRunner(verbose=d2u.verbose) - map(runner.run, d2u.finder.find(func, func.__name__)) + for the_test in d2u.finder.find(func, func.__name__): + runner.run(the_test) failed = count_failures(runner) if failed: # Since we only looked at a single function's docstring,