[ldapfeed] re-enable ldap tests for python 3.7 3.27
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 25 Feb 2020 23:30:32 +0100
branch3.27
changeset 12896 d18bd998852c
parent 12895 5a9d1e64f505
child 12897 d0ade9350d0e
[ldapfeed] re-enable ldap tests for python 3.7 This was disabled because ldap3<2 wasn't compatible with python 3.7 While I'm here, drop unseless newline.
cubicweb/server/test/unittest_ldapsource.py
--- a/cubicweb/server/test/unittest_ldapsource.py	Tue Feb 25 23:22:58 2020 +0100
+++ b/cubicweb/server/test/unittest_ldapsource.py	Tue Feb 25 23:30:32 2020 +0100
@@ -143,12 +143,8 @@
 
     @classmethod
     def pre_setup_database(cls, cnx, config):
-        if sys.version_info[:2] >= (3, 7):
-            raise unittest.SkipTest(
-                'ldapfeed is not currently compatible with Python 3.7')
         cnx.create_entity('CWSource', name=u'ldap', type=u'ldapfeed', parser=u'ldapfeed',
                           url=URL, config=CONFIG_LDAPFEED)
-
         cnx.commit()
         return cls.pull(cnx)