From 3b3a9ec57f8ec0b09503451fafbd3b01b12f0dc4c18bb129e2e9a0454fd5493a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 4 Feb 2021 16:34:25 +0000 Subject: [PATCH] Accepting request 869041 from home:bnavigator:branches:devel:languages:python:numeric - Skip the import without warning test gh#dask/fastparquet#558 - Apply the Cepl-Strangelove-Parameter to pytest (--import-mode append) OBS-URL: https://build.opensuse.org/request/show/869041 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-fastparquet?expand=0&rev=26 --- python-fastparquet.changes | 7 +++++++ python-fastparquet.spec | 13 ++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/python-fastparquet.changes b/python-fastparquet.changes index 37cf62a..3a27d20 100644 --- a/python-fastparquet.changes +++ b/python-fastparquet.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Feb 3 21:43:10 UTC 2021 - Ben Greiner + +- Skip the import without warning test gh#dask/fastparquet#558 +- Apply the Cepl-Strangelove-Parameter to pytest + (--import-mode append) + ------------------------------------------------------------------- Sat Jan 2 21:04:30 UTC 2021 - Benjamin Greiner diff --git a/python-fastparquet.spec b/python-fastparquet.spec index 243bda0..511aa38 100644 --- a/python-fastparquet.spec +++ b/python-fastparquet.spec @@ -75,18 +75,13 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# avoid that the process call of python inside the tests imports from source -# directory fastparquet and don't read setup.cfg -mkdir ../testdir -cp -r test-data ../testdir/ -pushd ../testdir +# newer packaging package creates false DeprecationWarning gh#dask/fastparquet#558 +donttest+=" or test_import_without_warning" # Test test_time_millis has the wrong reference type for 32-bit %if 0%{?__isa_bits} != 64 -%define donttest -k 'not test_time_millis' +donttest+=" or test_time_millis" %endif -%pytest_arch --pyargs fastparquet %{?donttest} -popd -rm -r ../testdir +%pytest_arch --pyargs fastparquet --import-mode append -k "not (${donttest:4})" %files %{python_files} %doc README.rst