Author terry.reedy
Recipients Arfrever, Claudiu.Popa, kousu, terry.reedy
Date 2013-10-19.00:16:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:10terry.reedysetrecipients: + terry.reedy, kousu, Arfrever, Claudiu.Popa
2013-10-19 00:16:08terry.reedysetmessageid: <>
2013-10-19 00:16:07terry.reedylinkissue19282 messages
2013-10-19 00:16:05terry.reedycreate