STINNER Victor <[email protected]> added the comment:
Another one:
Lib/unittest/test/test_program.py:191:40 undefined name 'hasInstallHandler'
Code:
def testBufferCatchFailfast(self):
program = self.program
for arg, attr in (('buffer', 'buffer'), ('failfast', 'failfast'),
('catch', 'catchbreak')):
if attr == 'catch' and not hasInstallHandler:
continue
...
attr is never equal to 'catch' and so it's just dead code which can be removed.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40462>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com