diff --git a/testing/test_junitxml.py b/testing/test_junitxml.py index 6258cb473..f8acd1576 100644 --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -55,7 +55,7 @@ class TestPython: node = dom.getElementsByTagName("testsuite")[0] tnode = node.getElementsByTagName("testcase")[0] val = tnode.getAttributeNode("time").value - assert float(val) >= 0.03 + assert round(float(val), 2) >= 0.03 def test_setup_error(self, testdir): testdir.makepyfile("""