Menu

#67 t_ldapurl.py unit test errors (python-ldap 2.4.19)

None
closed-fixed
None
5
2016-12-11
2015-04-24
No

One of the unit tests for t_ldapurl.py fails in python-ldap 2.4.19. I am running Python 2.7.5 on a RHEL6 system. Googling around it looks like this is/was a known issue on the mailing list here. I am reporting this issue now to ask that you please either fix the underling issue or add a @unittest.expectedFailure decorator to the failing test. I have included a patch that does that.

$ python t_ldapurl.py
F..................
======================================================================
FAIL: test_bad_urls (__main__.TestLDAPUrl)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "t_ldapurl.py", line 237, in test_bad_urls
    self.fail("should have raised ValueError: %r" % bad)
AssertionError: should have raised ValueError: 'ldap:///?????'

----------------------------------------------------------------------
Ran 19 tests in 0.005s

FAILED (failures=1)
1 Attachments

Discussion

  • Michael Ströder

    • status: open --> closed-fixed
    • assigned_to: Michael Ströder
    • Group: -->
     
  • Michael Ströder

    added @unittest.expectedFailure for now

     

Log in to post a comment.