Commit 630e4642 authored by Gregory P. Smith's avatar Gregory P. Smith

Merge 58539: squelch the warning that this test is intended to raise.

parent 66077d8e
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import shutil import shutil
import tempfile import tempfile
import warnings
try: try:
# For Pythons w/distutils and add-on pybsddb # For Pythons w/distutils and add-on pybsddb
from bsddb3 import db from bsddb3 import db
...@@ -32,8 +33,12 @@ class Context: ...@@ -32,8 +33,12 @@ class Context:
del self.the_txn del self.the_txn
context = Context() warnings.filterwarnings('ignore', 'DBTxn aborted in destructor')
del context try:
context = Context()
del context
finally:
warnings.resetwarnings()
# try not to leave a turd # try not to leave a turd
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment