summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-10-19 07:31:20 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-10-19 07:31:20 (GMT)
commit87fc9ad96672fefe6a824e06c11e475e8400f55d (patch)
treec03ef8433ab990eddd6d9ec4b1d8f5326100890a /Lib/bsddb
parent11e679e6ffa4029d7fbfb31496a9005bc2dd97ef (diff)
downloadcpython-87fc9ad96672fefe6a824e06c11e475e8400f55d.zip
cpython-87fc9ad96672fefe6a824e06c11e475e8400f55d.tar.gz
cpython-87fc9ad96672fefe6a824e06c11e475e8400f55d.tar.bz2
squelch the warning that this test is supposed to trigger.
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 bc0ede6..e8e73a1 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: