[ldapfeed] re-enable ldap tests for python 3.7 3.26
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 25 Feb 2020 23:30:32 +0100
branch3.26
changeset 12903 4ebfdf607b49
parent 12902 5c35b94debfc
child 12904 2ad148f22c2f
[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
@@ -148,12 +148,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)