- 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
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-mailman
|
||||
Name: python-mailman%{psuffix}
|
||||
Version: 3.3.0
|
||||
Release: 0
|
||||
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
|
||||
|
||||
%check
|
||||
# TODO, needs to figure out how tests has to be run
|
||||
%if %{with test}
|
||||
# tests, that needs to be fixed (ERRORs)
|
||||
# removing whole test files, I have not found a way to
|
||||
# skip individual tests besides patching
|
||||
#
|
||||
# relies on /usr/bin/master to be available,
|
||||
# however it needs root privileges
|
||||
rm src/mailman/commands/tests/test_cli_control.py
|
||||
# relies on /dev/stdout is not available
|
||||
# doctest fails miserably
|
||||
find -name '*.rst' -exec rm {} \;
|
||||
# used to have ports 902{4,5}
|
||||
rm src/mailman/mta/tests/test_aliases.py
|
||||
# PermissionError: [Errno 13] Permission denied: '/usr/bin/master'
|
||||
rm src/mailman/core/tests/test_logging.py
|
||||
# 550 'Requested action not taken: mailbox unavailable'
|
||||
rm src/mailman/runners/tests/test_lmtp.py
|
||||
# 451 'Requested action aborted: error in processing'
|
||||
rm src/mailman/rest/tests/test_membership.py
|
||||
# PermissionError: [Errno 13] Permission denied: '/usr/bin/master'
|
||||
rm src/mailman/commands/tests/test_cli_control.py
|
||||
# do not use well known ports 9024 and 9025
|
||||
sed -i "s:\(902\):4\1:" src/mailman/testing/testing.cfg
|
||||
#
|
||||
%python_exec -m nose2 -v
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user