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 yellowdusk1590
Recipients yellowdusk1590
Date 2022-01-20.00:33:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642638785.66.0.497652799154.issue46442@roundup.psfhosted.org>
In-reply-to
Content
testExceptionCleanupNames() is supposed to test that the local variable bound to the exception instance is only visible inside the except block, and tests that by checking whether the name is in locals(), but it actually deletes the name before that, so it appears it isn't testing what it's supposed to be testing.

```
        try:
            raise Exception()
        except Exception as e:
            self.assertTrue(e)
            del e
        self.assertNotIn('e', locals())
```
History
Date User Action Args
2022-01-20 00:33:05yellowdusk1590setrecipients: + yellowdusk1590
2022-01-20 00:33:05yellowdusk1590setmessageid: <1642638785.66.0.497652799154.issue46442@roundup.psfhosted.org>
2022-01-20 00:33:05yellowdusk1590linkissue46442 messages
2022-01-20 00:33:05yellowdusk1590create