Message410997
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())
``` |
|
Date |
User |
Action |
Args |
2022-01-20 00:33:05 | yellowdusk1590 | set | recipients:
+ yellowdusk1590 |
2022-01-20 00:33:05 | yellowdusk1590 | set | messageid: <1642638785.66.0.497652799154.issue46442@roundup.psfhosted.org> |
2022-01-20 00:33:05 | yellowdusk1590 | link | issue46442 messages |
2022-01-20 00:33:05 | yellowdusk1590 | create | |
|