This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-05-01.00:04:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588291471.11.0.895984809651.issue40462@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-05-01 00:04:31vstinnersetrecipients: + vstinner
2020-05-01 00:04:31vstinnersetmessageid: <1588291471.11.0.895984809651.issue40462@roundup.psfhosted.org>
2020-05-01 00:04:31vstinnerlinkissue40462 messages
2020-05-01 00:04:30vstinnercreate