diff options
author | Don Anderson <dda@ddanderson.com> | 2014-12-02 13:58:15 -0500 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2014-12-02 13:58:15 -0500 |
commit | 9058f6a54b7022d5346622c3656ef874676f5d10 (patch) | |
tree | ca92ccdbb7a94b58f6f1f6523faca858f1e6ebbc /test/suite/test_txn02.py | |
parent | b310e7bba4987d07648683f384d6a36f66e6e4f5 (diff) | |
download | mongo-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.py | 4 |
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 # |