forked from pool/python-pytest-benchmark
- Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=34
This commit is contained in:
22
fix-test-fast.patch
Normal file
22
fix-test-fast.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- 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):
|
||||
Reference in New Issue
Block a user