示例#1
0
def test_joining():
    t = StoppableThread()
    t.start()
    t.join()
    assert t.should_stop() == True
示例#2
0
def test_joining():
    t = StoppableThread()
    t.start()
    t.join()
    assert t.should_stop() == True
示例#3
0
def test_thread_stopping():
    t = StoppableThread()
    t.start()
    t.stop()
    assert t.should_stop() is True
    t.join()
示例#4
0
def test_thread_stopping():
    t = StoppableThread()
    t.start()
    t.stop()
    assert t.should_stop() is True
    t.join()