fix tests on i686

This commit is contained in:
Dominik 'Rathann' Mierzejewski 2021-02-03 15:25:23 +01:00
parent 08b2cc5f64
commit 61a3812a71
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -up zstandard-0.15.1/tests/test_data_structures.py.orig zstandard-0.15.1/tests/test_data_structures.py
--- zstandard-0.15.1/tests/test_data_structures.py.orig 1970-01-01 01:00:00.000000000 +0100
+++ zstandard-0.15.1/tests/test_data_structures.py 2021-02-03 12:41:52.539183516 +0100
@@ -102,7 +102,7 @@ class TestCompressionParameters(unittest
# 32-bit has slightly different values from 64-bit.
self.assertAlmostEqual(
- p.estimated_compression_context_size(), 1295064, delta=400
+ p.estimated_compression_context_size(), 1295064, delta=500
)
def test_strategy(self):

View File

@ -19,6 +19,7 @@ Summary: Zstandard bindings for Python
License: BSD and GPLv2
URL: https://github.com/indygreg/python-zstandard
Source0: %{pypi_source}
Patch0: %{name}-fix-estimated_compression_context_size-tolerance-i686.patch
%description
%{desc}
@ -42,6 +43,7 @@ Provides: bundled(zstd) = 1.4.8
%prep
%setup -q -n %{pypi_name}-%{version}
%patch0 -p1
rm -r %{pypi_name}.egg-info
%build
@ -78,6 +80,7 @@ mv zstandard{.src,}
* Wed Feb 03 2021 Dominik Mierzejewski <dominik@greysector.net> 0.15.1-1
- update to 0.15.1 (#1924620)
- work around weird test failure
- fix tests on i686
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild