Hello community, here is the log from the commit of package python-ldap3 for openSUSE:Factory checked in at 2020-07-24 12:09:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ldap3 (Old) and /work/SRC/openSUSE:Factory/.python-ldap3.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ldap3" Fri Jul 24 12:09:22 2020 rev:13 rq:822513 version:2.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ldap3/python-ldap3.changes 2020-05-16 22:27:01.725358641 +0200 +++ /work/SRC/openSUSE:Factory/.python-ldap3.new.3592/python-ldap3.changes 2020-07-24 12:09:32.705813897 +0200 @@ -1,0 +2,6 @@ +Fri Jul 24 00:46:48 UTC 2020 - Matej Cepl <mc...@suse.com> + +- Add skip-missing-LDAP-server.patch to skip over tests failing because + of the missing local LDAP server running (gh#cannatag/ldap3#843). + +------------------------------------------------------------------- New: ---- skip-missing-LDAP-server.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ldap3.spec ++++++ --- /var/tmp/diff_new_pack.EtFKTw/_old 2020-07-24 12:09:34.793815998 +0200 +++ /var/tmp/diff_new_pack.EtFKTw/_new 2020-07-24 12:09:34.793815998 +0200 @@ -24,8 +24,11 @@ License: LGPL-3.0-only URL: https://github.com/cannatag/ldap3 Source: https://github.com/cannatag/ldap3/archive/v%{version}.tar.gz -BuildRequires: %{python_module nose} +# PATCH-FIX-UPSTREAM skip-missing-LDAP-server.patch gh#cannatag/ldap3#843 mc...@suse.com +# skip over tests failing because of the missing local LDAP server running +Patch0: skip-missing-LDAP-server.patch BuildRequires: %{python_module pyasn1 >= 0.4.6} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes @@ -44,6 +47,8 @@ %prep %setup -q -n ldap3-%{version} +%autopatch -p1 + dos2unix COPYING.LESSER.txt COPYING.txt README.rst LICENSE.txt %build @@ -54,7 +59,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec %{_bindir}/nosetests -s test || : +export STRATEGY=SYNC SERVER=EDIR DECODER=INTERNAL +%pytest test/test*.py %files %{python_files} %license COPYING.LESSER.txt COPYING.txt LICENSE.txt ++++++ skip-missing-LDAP-server.patch ++++++ --- a/test/config.py +++ b/test/config.py @@ -25,6 +25,7 @@ from os import environ, remove from os import path from random import SystemRandom from tempfile import gettempdir +from unittest import SkipTest from ldap3 import SIMPLE, SYNC, ROUND_ROBIN, IP_V6_PREFERRED, IP_SYSTEM_DEFAULT, Server, Connection,\ ServerPool, SASL, STRING_TYPES, get_config_parameter, set_config_parameter, \ @@ -380,7 +381,7 @@ elif location == 'W10GC9227-AD': test_logging_filename = path.join(gettempdir(), 'ldap3.log') test_valid_names = ['10.160.201.232'] else: - raise Exception('testing location ' + location + ' is not valid') + raise SkipTest('testing location ' + location + ' is not valid') if test_logging: try: