Hello community,

here is the log from the commit of package python-pytest-benchmark for 
openSUSE:Factory checked in at 2019-05-16 21:55:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-benchmark (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-benchmark.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-benchmark"

Thu May 16 21:55:57 2019 rev:3 rq:701806 version:3.2.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-benchmark/python-pytest-benchmark.changes
  2019-03-29 20:38:48.790682606 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-benchmark.new.5148/python-pytest-benchmark.changes
        2019-05-16 21:56:00.714889525 +0200
@@ -1,0 +2,6 @@
+Thu May  9 14:49:19 CEST 2019 - Matej Cepl <[email protected]>
+
+- Add fix-test-fast.patch to avoid failing
+  tests/test_normal.py::test_fast test on 32bit platform.
+
+-------------------------------------------------------------------

New:
----
  fix-test-fast.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-benchmark.spec ++++++
--- /var/tmp/diff_new_pack.lpYjPk/_old  2019-05-16 21:56:01.250889296 +0200
+++ /var/tmp/diff_new_pack.lpYjPk/_new  2019-05-16 21:56:01.254889294 +0200
@@ -25,6 +25,7 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/ionelmc/pytest-benchmark
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-benchmark/pytest-benchmark-%{version}.tar.gz
+Patch0:         fix-test-fast.patch
 BuildRequires:  %{python_module aspectlib}
 BuildRequires:  %{python_module elasticsearch}
 BuildRequires:  %{python_module freezegun}
@@ -61,6 +62,7 @@
 
 %prep
 %setup -q -n pytest-benchmark-%{version}
+%autopatch -p1
 # skip cli tests as we use update-alternatives
 rm -f tests/test_cli.py
 

++++++ fix-test-fast.patch ++++++
--- 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):

Reply via email to