Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66077d8 commit 630e464Copy full SHA for 630e464
1 file changed
Lib/bsddb/test/test_1413192.py
@@ -5,6 +5,7 @@
5
6
import shutil
7
import tempfile
8
+import warnings
9
try:
10
# For Pythons w/distutils and add-on pybsddb
11
from bsddb3 import db
@@ -32,8 +33,12 @@ def __init__(self):
32
33
del self.the_txn
34
35
-context = Context()
36
-del context
+warnings.filterwarnings('ignore', 'DBTxn aborted in destructor')
37
+try:
38
+ context = Context()
39
+ del context
40
+finally:
41
+ warnings.resetwarnings()
42
43
# try not to leave a turd
44
0 commit comments