MCPcopy Index your code
hub / github.com/ipython/ipython / test_dead

Function test_dead

tests/test_backgroundjobs.py:65–73  ·  view source on GitHub ↗

Test control of dead jobs

()

Source from the content-addressed store, hash-verified

63
64
65def test_dead():
66 """Test control of dead jobs"""
67 jobs = bg.BackgroundJobManager()
68 j = jobs.new(crasher)
69 j.join()
70 assert len(jobs.completed) == 0
71 assert len(jobs.dead) == 1
72 jobs.flush()
73 assert len(jobs.dead) == 0
74
75
76def test_longer():

Callers

nothing calls this directly

Calls 2

newMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…