diff --git a/python-brotlipy.spec b/python-brotlipy.spec index 99b00de..1eaded5 100644 --- a/python-brotlipy.spec +++ b/python-brotlipy.spec @@ -65,10 +65,11 @@ export CXXFLAGS="%{optflags}" %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitearch} +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest +# the skipped tests are benchmarks which can be flaky in OBS +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest -k 'not (test_streaming_compression or test_streaming_compression_flush)' %files %{python_files} %license LICENSE LICENSE.libbrotli