示例#1
0
def test3():
    t0 = time.time()
    plac.runp([gen(9), gen(9)])
    assert int(time.time() - t0) == 1 # it must take 1 second, not 2
示例#2
0
def test2():
    result, error = plac.runp([gen(3), err()])
    assert result == '3' and error.__class__ == ZeroDivisionError
示例#3
0
def test1():
    assert ['3', '5', '10'] == plac.runp([gen(3), gen(5), gen(10)])
示例#4
0
def test3():
    t0 = time.time()
    plac.runp([gen(9), gen(9)])
    assert int(time.time() - t0) == 1  # it must take 1 second, not 2
示例#5
0
def test2():
    result, error = plac.runp([gen(3), err()])
    assert result == '3' and error.__class__ == ZeroDivisionError
示例#6
0
def test1():
    assert ['3', '5', '10'] == plac.runp([gen(3), gen(5), gen(10)])