MCPcopy Create free account
hub / github.com/ipython/ipython / test_dead

Function test_dead

IPython/lib/tests/test_backgroundjobs.py:66–74  ·  view source on GitHub ↗

Test control of dead jobs

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

newMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected