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 connect
Changes by Hari Krishna Dara harid...@gmail.com:
--
nosy: +haridsv
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6966
___
___
Python-bugs-list
Hari Krishna Dara harid...@gmail.com 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 '=='
operator
Hari Krishna Dara harid...@gmail.com 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. Argument msg could
Hari Krishna Dara harid...@gmail.com 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.Krishna.Dara
Hari Krishna Dara harid...@gmail.com 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