summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-10-18 14:24:21 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-10-18 14:24:21 +1100
commit5d55a2812130f2fbfb7046f3b376948959ce843e (patch)
tree3f1861bde4d98724d5c121b38e3bec504f29a49f /test
parent02e6f0e5e8854e5578151aa18f5c586c81fd53bd (diff)
downloadmongo-5d55a2812130f2fbfb7046f3b376948959ce843e.tar.gz
Fix the Python check for a verbose build: it can't be a connection method, that's too late.
Diffstat (limited to 'test')
-rw-r--r--test/suite/test_bulk01.py2
-rw-r--r--test/suite/test_txn06.py9
2 files changed, 5 insertions, 6 deletions
diff --git a/test/suite/test_bulk01.py b/test/suite/test_bulk01.py
index 5866eff57d0..c99cedae1e6 100644
--- a/test/suite/test_bulk01.py
+++ b/test/suite/test_bulk01.py
@@ -100,7 +100,7 @@ class test_bulk_load_row_order(wttest.WiredTigerTestCase):
cursor.set_value(value_populate(cursor, 1))
cursor.insert()
- if not self.conn.diagnostic_build():
+ if not wiredtiger.diagnostic_build():
self.skipTest('requires a diagnostic build')
# Close explicitly, there's going to be a fallure.
diff --git a/test/suite/test_txn06.py b/test/suite/test_txn06.py
index 4d1616084fe..0d3bf79c499 100644
--- a/test/suite/test_txn06.py
+++ b/test/suite/test_txn06.py
@@ -29,10 +29,9 @@
# Transactions: test long-running snapshots
from suite_subprocess import suite_subprocess
-from wiredtiger import wiredtiger_open
from wtscenario import multiply_scenarios, number_scenarios
from helper import simple_populate
-import wttest
+import wiredtiger, wttest
class test_txn06(wttest.WiredTigerTestCase, suite_subprocess):
conn_config = 'verbose=[transaction]'
@@ -41,10 +40,10 @@ class test_txn06(wttest.WiredTigerTestCase, suite_subprocess):
source_uri = 'table:' + tablename + "_src"
nrows = 100000
- def setupConnection(*args):
- if not self.conn.verbose_build():
+ def setUpConnectionOpen(self, *args):
+ if not wiredtiger.verbose_build():
self.skipTest('requires a verbose build')
- super(wttest.WiredTigerTestCase, setupConnection)(*args)
+ super(wttest.WiredTigerTestCase, setUpConnectionOpen)(self, *args)
def test_long_running(self):
# Populate a table