summaryrefslogtreecommitdiff
path: root/test/suite/test_txn02.py
diff options
context:
space:
mode:
authorDon Anderson <dda@ddanderson.com>2014-12-02 13:58:15 -0500
committerDon Anderson <dda@ddanderson.com>2014-12-02 13:58:15 -0500
commit9058f6a54b7022d5346622c3656ef874676f5d10 (patch)
treeca92ccdbb7a94b58f6f1f6523faca858f1e6ebbc /test/suite/test_txn02.py
parentb310e7bba4987d07648683f384d6a36f66e6e4f5 (diff)
downloadmongo-9058f6a54b7022d5346622c3656ef874676f5d10.tar.gz
To yield a thread, use time.sleep(0), not Python's keyword 'yield'.
Diffstat (limited to 'test/suite/test_txn02.py')
-rw-r--r--test/suite/test_txn02.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/suite/test_txn02.py b/test/suite/test_txn02.py
index 3eb35de8691..813592ffefc 100644
--- a/test/suite/test_txn02.py
+++ b/test/suite/test_txn02.py
@@ -29,7 +29,7 @@
# Transactions: commits and rollbacks
#
-import fnmatch, os, shutil
+import fnmatch, os, shutil, time
from suite_subprocess import suite_subprocess
from wiredtiger import wiredtiger_open
from wtscenario import multiply_scenarios, number_scenarios
@@ -163,7 +163,7 @@ class test_txn02(wttest.WiredTigerTestCase, suite_subprocess):
finally:
# Yield so that the archive thread gets a chance to run
# before we close the connection.
- yield
+ time.sleep(0)
backup_conn.close()
count += 1
#