mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Deprecate bsddb for removal in Python 3.0.
Closes issue 3776. Review by Nick Coghlan.
This commit is contained in:
parent
6024834ed9
commit
32476fc5a8
8 changed files with 26 additions and 6 deletions
|
@ -508,6 +508,7 @@ class CatchWarningTests(BaseTest):
|
|||
wmod = self.module
|
||||
with wmod.catch_warnings(module=wmod, record=True) as w:
|
||||
self.assertEqual(w, [])
|
||||
self.assertRaises(AttributeError, getattr, w, 'message')
|
||||
wmod.simplefilter("always")
|
||||
wmod.warn("foo")
|
||||
self.assertEqual(str(w.message), "foo")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue