summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-10-19 07:34:48 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-10-19 07:34:48 (GMT)
commit630e46424a578bb619037dceed72a734d39ee237 (patch)
treeda15641009c51677f4fa359e5b1b227824cfa16b /Lib/bsddb
parent66077d8e616335f834b7273293aababae90dd4d4 (diff)
downloadcpython-630e46424a578bb619037dceed72a734d39ee237.zip
cpython-630e46424a578bb619037dceed72a734d39ee237.tar.gz
cpython-630e46424a578bb619037dceed72a734d39ee237.tar.bz2
Merge 58539: squelch the warning that this test is intended to raise.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/test/test_1413192.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_1413192.py b/Lib/bsddb/test/test_1413192.py
index 5caae81..1d4bd56 100644
--- a/Lib/bsddb/test/test_1413192.py
+++ b/Lib/bsddb/test/test_1413192.py
@@ -5,6 +5,7 @@
import shutil
import tempfile
+import warnings
try:
# For Pythons w/distutils and add-on pybsddb
from bsddb3 import db
@@ -32,8 +33,12 @@ class Context:
del self.the_txn
-context = Context()
-del context
+warnings.filterwarnings('ignore', 'DBTxn aborted in destructor')
+try:
+ context = Context()
+ del context
+finally:
+ warnings.resetwarnings()
# try not to leave a turd
try: