s.run()
assert len(results) == 2
assert results[0][0] == 1
- assert results[0][1] - t0 == pytest.approx(0.1, 0.01)
+ assert results[0][1] - t0 == pytest.approx(0.1, 0.1)
assert results[1][0] == 2
- assert results[1][1] - t0 == pytest.approx(0.2, 0.01)
+ assert results[1][1] - t0 == pytest.approx(0.2, 0.1)
@pytest.mark.slow
t.join()
t1 = time()
- assert t1 - t0 == pytest.approx(0.3, 0.01)
+ assert t1 - t0 == pytest.approx(0.3, 0.1)
assert len(results) == 2
assert results[0][0] == 1
- assert results[0][1] - t0 == pytest.approx(0.1, 0.01)
+ assert results[0][1] - t0 == pytest.approx(0.1, 0.1)
assert results[1][0] == 2
- assert results[1][1] - t0 == pytest.approx(0.2, 0.01)
+ assert results[1][1] - t0 == pytest.approx(0.2, 0.1)
@pytest.mark.slow
t.join()
t1 = time()
- assert t1 - t0 == pytest.approx(0.4, 0.01)
+ assert t1 - t0 == pytest.approx(0.4, 0.1)
assert len(results) == 2
assert results[0][0] == 1
- assert results[0][1] - t0 == pytest.approx(0.1, 0.01)
+ assert results[0][1] - t0 == pytest.approx(0.1, 0.1)
assert results[1][0] == 2
- assert results[1][1] - t0 == pytest.approx(0.3, 0.01)
+ assert results[1][1] - t0 == pytest.approx(0.3, 0.1)
assert len(caplog.records) == 1
assert "ZeroDivisionError" in caplog.records[0].message
t.join()
times.append(time() - t0)
for got, want in zip(times, [0.2, 0.4, 0.5, 1.0]):
- assert got == pytest.approx(want, 0.01)
+ assert got == pytest.approx(want, 0.1)
@pytest.mark.slow
t.join()
times.append(time() - t0)
for got, want in zip(times, [0.1, 0.2, 0.4, 0.6, 0.6]):
- assert got == pytest.approx(want, 0.01)
+ assert got == pytest.approx(want, 0.1)