Skip to content

Commit 802de40

Browse files
committed
PYTHON-1918 Fix decoding perf test
1 parent ef3df16 commit 802de40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/performance/perf_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
sys.path[0:0] = [""]
2929

30-
from bson import encode
30+
from bson import decode, encode
3131
from bson.json_util import loads
3232
from gridfs import GridFSBucket
3333
from pymongo import MongoClient
@@ -146,7 +146,7 @@ def setUp(self):
146146

147147
def do_task(self):
148148
for _ in range(NUM_DOCS):
149-
self.document.decode()
149+
decode(self.document)
150150

151151

152152
class TestFlatEncoding(BsonEncodingTest, unittest.TestCase):

0 commit comments

Comments
 (0)