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 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 <1382141768.02.0.982182383036.issue19282@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-10-19 00:16:10terry.reedysetrecipients: + terry.reedy, kousu, Arfrever, Claudiu.Popa
2013-10-19 00:16:08terry.reedysetmessageid: <1382141768.02.0.982182383036.issue19282@psf.upfronthosting.co.za>
2013-10-19 00:16:07terry.reedylinkissue19282 messages
2013-10-19 00:16:05terry.reedycreate