Hello community,

here is the log from the commit of package python-pyftpdlib for 
openSUSE:Factory checked in at 2020-08-18 15:08:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyftpdlib (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyftpdlib.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyftpdlib"

Tue Aug 18 15:08:40 2020 rev:13 rq:826978 version:1.5.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyftpdlib/python-pyftpdlib.changes        
2020-05-26 17:18:19.143845650 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyftpdlib.new.3399/python-pyftpdlib.changes  
    2020-08-18 15:09:03.747991297 +0200
@@ -1,0 +2,5 @@
+Sun Aug 16 04:20:40 UTC 2020 - John Vandenberg <[email protected]>
+
+- Re-activate test suite, replacing nose with pytest
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyftpdlib.spec ++++++
--- /var/tmp/diff_new_pack.fSdQ6B/_old  2020-08-18 15:09:08.039993072 +0200
+++ /var/tmp/diff_new_pack.fSdQ6B/_new  2020-08-18 15:09:08.043993074 +0200
@@ -18,8 +18,6 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-# Tests randomly fail: https://github.com/giampaolo/pyftpdlib/issues/386
-%bcond_with     test
 %bcond_without python2
 Name:           python-pyftpdlib
 Version:        1.5.6
@@ -29,10 +27,10 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/giampaolo/pyftpdlib/
 Source:         
https://files.pythonhosted.org/packages/source/p/pyftpdlib/pyftpdlib-%{version}.tar.gz
-BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pyOpenSSL}
 BuildRequires:  %{python_module pysendfile}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -66,11 +64,15 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 # Note: Do not remove tests. Other packages import them
 
-%if %{with test}
 %check
+# Tests reported as randomly failing in 2016 against v1.5.0:
+# https://github.com/giampaolo/pyftpdlib/issues/386
+# If they re-occur, please update the issue with backtraces,
+# and disable only related tests.
 export PYTHONPATH=$PWD
-%python_exec pyftpdlib/test/runner.py
-%endif
+printf '[pytest]\naddopts = -rs -v -k "not (TestFtpStoreDataTLSMixin and 
test_rest_on_stor) and not (TestFtpStoreDataTLSMixin and test_stor_ascii)"' > 
pytest.ini
+# %%pytest des not work. The tests parse CLI args and fail if there are any 
unknown program args
+%python_exec -m pytest
 
 %post
 %python_install_alternative ftpbench


Reply via email to