Fix flaky test
This commit is contained in:
parent
a44776ed48
commit
0bccfc44a7
|
@ -169,7 +169,7 @@ class TestPython(object):
|
||||||
node = dom.find_first_by_tag("testsuite")
|
node = dom.find_first_by_tag("testsuite")
|
||||||
tnode = node.find_first_by_tag("testcase")
|
tnode = node.find_first_by_tag("testcase")
|
||||||
val = tnode["time"]
|
val = tnode["time"]
|
||||||
assert 0.01 <= round(float(val), 2) < 0.02
|
assert 0.01 <= round(float(val), 3) < 0.02
|
||||||
|
|
||||||
def test_setup_error(self, testdir):
|
def test_setup_error(self, testdir):
|
||||||
testdir.makepyfile(
|
testdir.makepyfile(
|
||||||
|
|
Loading…
Reference in New Issue