Hari Krishna Dara added the comment:
Interesting... the posted Python code for 2.x didn't work for me on 2.6.9 on
Mac OS X (10.10.5). The code in catch block further generates the below
exception:
Traceback (most recent call last):
File "/tmp/t.py", line 17, in connec
Hari Krishna Dara added the comment:
Oops... the dict part should have been "dict(lhs=first, rhs=second)":
def failUnlessEqual(self, first, second, msg=None):
"""Fail if the two objects are unequal as determined by the '=='
operator. Ar
Hari Krishna Dara added the comment:
Changing unittest.TestCase.failUnlessEqual() to something like this will be
very useful:
def failUnlessEqual(self, first, second, msg=None):
"""Fail if the two objects are unequal as determined by the '=='
Changes by Hari Krishna Dara :
--
nosy: +haridsv
___
Python tracker
<http://bugs.python.org/issue6966>
___
___
Python-bugs-list mailing list
Unsubscribe:
Hari Krishna Dara added the comment:
I just hit up on this same bug and the "class object(object): pass" workaround
worked fine. I too would like to know how safe this workaround is, could
someone more insightful please comment on this?
--
nosy: +Hari.Kr
Hari Krishna Dara added the comment:
I hit exactly this same problem today trying to customize sys.path. We
conventionally use .pth file under site-packages to add our custom
library paths, but this is not convenient in development while switching
between branches/checkout directories, so I