From d132824d870e07dbb04ae223ddecc0a3d5182c79 2018-09-02 00:19:45 From: Matthias Bussonnier Date: 2018-09-02 00:19:45 Subject: [PATCH] Merge pull request #11280 from meeseeksmachine/auto-backport-of-pr-11277-on-6.x Backport PR #11277 on branch 6.x (Actually run some tests.) --- 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,