From d2539734d972ffa6e31f582f74193b982d48eace 2018-09-02 00:19:02 From: Matthias Bussonnier Date: 2018-09-02 00:19:02 Subject: [PATCH] Merge pull request #11279 from meeseeksmachine/auto-backport-of-pr-11277-on-5.x Backport PR #11277 on branch 5.x (Actually run some tests.) --- diff --git a/IPython/testing/ipunittest.py b/IPython/testing/ipunittest.py index ae134f2..da05981 100644 --- a/IPython/testing/ipunittest.py +++ b/IPython/testing/ipunittest.py @@ -147,7 +147,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,