Ejemplo n.º 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
Ejemplo n.º 2
0
def test2():
    result, error = plac.runp([gen(3), err()])
    assert result == '3' and error.__class__ == ZeroDivisionError
Ejemplo n.º 3
0
def test1():
    assert ['3', '5', '10'] == plac.runp([gen(3), gen(5), gen(10)])
Ejemplo n.º 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
Ejemplo n.º 5
0
def test2():
    result, error = plac.runp([gen(3), err()])
    assert result == '3' and error.__class__ == ZeroDivisionError
Ejemplo n.º 6
0
def test1():
    assert ['3', '5', '10'] == plac.runp([gen(3), gen(5), gen(10)])