4f81430dff
- Add fix-test-fast.patch to avoid failing tests/test_normal.py::test_fast test on 32bit platform. OBS-URL: https://build.opensuse.org/request/show/701805 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=9
23 lines
590 B
Diff
23 lines
590 B
Diff
--- a/tests/test_normal.py
|
|
+++ b/tests/test_normal.py
|
|
@@ -5,6 +5,7 @@ Just to make sure the plugin doesn't cho
|
|
Yay, doctests!
|
|
|
|
"""
|
|
+import platform
|
|
import sys # noqa
|
|
import time
|
|
from functools import partial
|
|
@@ -20,7 +21,10 @@ def test_fast(benchmark):
|
|
assert result is None
|
|
|
|
if not benchmark.disabled:
|
|
- assert benchmark.stats.stats.min >= 0.000001
|
|
+ if '32' in platform.architecture()[0]:
|
|
+ assert benchmark.stats.stats.min >= 0.0000001
|
|
+ else:
|
|
+ assert benchmark.stats.stats.min >= 0.000001
|
|
|
|
|
|
def test_slow(benchmark):
|