@@ -2,7 +2,6 @@ Client Bulk Write Operations
2
2
=============================
3
3
4
4
.. testsetup ::
5
- :skipif: server_major_version < 8
6
5
7
6
from pymongo import MongoClient
8
7
@@ -47,6 +46,7 @@ summary of the types of operations performed in the bulk write, along with their
47
46
48
47
.. doctest ::
49
48
:options: +NORMALIZE_WHITESPACE
49
+ :skipif: server_major_version < 8
50
50
51
51
>>> from pymongo import InsertOne, DeleteOne, UpdateOne
52
52
>>> models = [
@@ -80,6 +80,7 @@ instance will also include detailed results about each successful operation perf
80
80
81
81
.. doctest ::
82
82
:options: +NORMALIZE_WHITESPACE
83
+ :skipif: server_major_version < 8
83
84
84
85
>>> from pymongo import InsertOne, DeleteMany, ReplaceOne, UpdateMany
85
86
>>> models = [
@@ -126,6 +127,7 @@ For example, a duplicate key error on the third operation below aborts the remai
126
127
127
128
.. doctest ::
128
129
:options: +NORMALIZE_WHITESPACE
130
+ :skipif: server_major_version < 8
129
131
130
132
>>> from pymongo import InsertOne, DeleteOne
131
133
>>> from pymongo.errors import ClientBulkWriteException
@@ -162,6 +164,7 @@ For example, the fourth and fifth write operations below get executed successful
162
164
163
165
.. doctest ::
164
166
:options: +NORMALIZE_WHITESPACE
167
+ :skipif: server_major_version < 8
165
168
166
169
>>> from pymongo import InsertOne, DeleteOne
167
170
>>> from pymongo.errors import ClientBulkWriteException
0 commit comments