Message200336
I agree with the revised title. Test_context_manager() should also test that db is actually closed after the with statement. I presume you can use self.assertRaises and try to do something with db that will fail if it is properly closed.
with self.assertRaises(<NotOpenError>):
db['a'] = 'a' # or whatever
I haven't looked at the C code. |
|
| Date |
User |
Action |
Args |
| 2013-10-19 00:16:10 | terry.reedy | set | recipients:
+ terry.reedy, kousu, Arfrever, Claudiu.Popa |
| 2013-10-19 00:16:08 | terry.reedy | set | messageid: <[email protected]> |
| 2013-10-19 00:16:07 | terry.reedy | link | issue19282 messages |
| 2013-10-19 00:16:05 | terry.reedy | create | |
|