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

Function test_flush

IPython/lib/tests/test_backgroundjobs.py:55–63  ·  view source on GitHub ↗

Test job control

()

Source from the content-addressed store, hash-verified

53
54
55def test_flush():
56 """Test job control"""
57 jobs = bg.BackgroundJobManager()
58 j = jobs.new(sleeper)
59 j.join()
60 nt.assert_equal(len(jobs.completed), 1)
61 nt.assert_equal(len(jobs.dead), 0)
62 jobs.flush()
63 nt.assert_equal(len(jobs.completed), 0)
64
65
66def test_dead():

Callers

nothing calls this directly

Calls 2

newMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected