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

Function test_flush

tests/test_backgroundjobs.py:54–62  ·  view source on GitHub ↗

Test job control

()

Source from the content-addressed store, hash-verified

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

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…