Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f7f262

Browse files
committed
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
1 parent a85a08c commit 0f7f262

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IPython/testing/ipunittest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ class Tester(unittest.TestCase):
146146
def test(self):
147147
# Make a new runner per function to be tested
148148
runner = DocTestRunner(verbose=d2u.verbose)
149-
map(runner.run, d2u.finder.find(func, func.__name__))
149+
for the_test in d2u.finder.find(func, func.__name__):
150+
runner.run(the_test)
150151
failed = count_failures(runner)
151152
if failed:
152153
# Since we only looked at a single function's docstring,

0 commit comments

Comments
 (0)