MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / run

Method run

test/test_threads.py:68–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.daemon = True
67
68 def run(self):
69 for _ in range(self.n):
70 error = True
71
72 try:
73 self.collection.insert_one({"test": "insert"})
74 error = False
75 except:
76 if not self.expect_exception:
77 raise
78
79 if self.expect_exception:
80 assert error
81
82
83class Update(threading.Thread):

Callers 5

print_thread_stacksFunction · 0.45
fips_enabledMethod · 0.45
ensure_mypy_failsMethod · 0.45
setUpMethod · 0.45

Calls 1

insert_oneMethod · 0.45

Tested by

no test coverage detected