- run the testsuite
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman?expand=0&rev=11
This commit is contained in:
parent
ed35b6308f
commit
87da75a35a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 5 19:05:56 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- run the testsuite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 24 13:44:55 UTC 2019 - pgajdos@suse.com
|
Tue Sep 24 13:44:55 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-mailman
|
Name: python-mailman%{psuffix}
|
||||||
Version: 3.3.0
|
Version: 3.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Mailman -- the GNU mailing list manager
|
Summary: Mailman -- the GNU mailing list manager
|
||||||
@ -117,21 +117,18 @@ sed '/importlib_resources/d' -i src/mailman.egg-info/requires.txt setup.py
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# TODO, needs to figure out how tests has to be run
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# tests, that needs to be fixed (ERRORs)
|
# doctest fails miserably
|
||||||
# removing whole test files, I have not found a way to
|
find -name '*.rst' -exec rm {} \;
|
||||||
# skip individual tests besides patching
|
# used to have ports 902{4,5}
|
||||||
#
|
rm src/mailman/mta/tests/test_aliases.py
|
||||||
# relies on /usr/bin/master to be available,
|
# PermissionError: [Errno 13] Permission denied: '/usr/bin/master'
|
||||||
# however it needs root privileges
|
|
||||||
rm src/mailman/commands/tests/test_cli_control.py
|
|
||||||
# relies on /dev/stdout is not available
|
|
||||||
rm src/mailman/core/tests/test_logging.py
|
rm src/mailman/core/tests/test_logging.py
|
||||||
# 550 'Requested action not taken: mailbox unavailable'
|
# PermissionError: [Errno 13] Permission denied: '/usr/bin/master'
|
||||||
rm src/mailman/runners/tests/test_lmtp.py
|
rm src/mailman/commands/tests/test_cli_control.py
|
||||||
# 451 'Requested action aborted: error in processing'
|
# do not use well known ports 9024 and 9025
|
||||||
rm src/mailman/rest/tests/test_membership.py
|
sed -i "s:\(902\):4\1:" src/mailman/testing/testing.cfg
|
||||||
|
#
|
||||||
%python_exec -m nose2 -v
|
%python_exec -m nose2 -v
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user