summaryrefslogtreecommitdiff
path: root/test/suite/test_stat01.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/test_stat01.py')
-rw-r--r--test/suite/test_stat01.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/suite/test_stat01.py b/test/suite/test_stat01.py
index e5e6bde6b76..8790aed66e9 100644
--- a/test/suite/test_stat01.py
+++ b/test/suite/test_stat01.py
@@ -117,9 +117,7 @@ class test_stat01(wttest.WiredTigerTestCase):
value = ""
for i in range(1, self.nentries):
value = value + 1000 * "a"
- cursor.set_key(key_populate(cursor, i))
- cursor.set_value(value)
- cursor.insert()
+ cursor[key_populate(cursor, i)] = value
cursor.close()
# Force the object to disk, otherwise we can't check the overflow count.