Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/examples/gevent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Gevent
PyMongo supports `Gevent <http://www.gevent.org/>`_. Simply call Gevent's
``monkey.patch_all()`` before loading any other modules:

.. doctest::
.. code-block:: pycon

>>> # You must call patch_all() *before* importing any other modules
>>> from gevent import monkey
Expand Down
8 changes: 6 additions & 2 deletions test/test_change_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

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

from test import IntegrationTest, client_context, unittest
from test import IntegrationTest, Version, client_context, unittest
from test.unified_format import generate_test_classes
from test.utils import (
AllowListEventListener,
Expand Down Expand Up @@ -764,8 +764,12 @@ def test_startafter_resume_uses_resumeafter_after_nonempty_getMore(self):

# Prose test no. 19
@no_type_check
@client_context.require_version_min(6, 0, 9)
def test_split_large_change(self):
server_version = client_context.version
if not server_version.at_least(6, 0, 9):
self.skipTest("$changeStreamSplitLargeEvent requires MongoDB 6.0.9+")
if server_version.at_least(6, 1, 0) and server_version < Version(7, 0, 0):
self.skipTest("$changeStreamSplitLargeEvent is not available in 6.x rapid releases")
self.db.drop_collection("test_split_large_change")
coll = self.db.create_collection(
"test_split_large_change", changeStreamPreAndPostImages={"enabled": True}
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ commands =
description = run sphinx doc tests
deps =
{[testenv:doc]deps}
gevent
pytz
commands =
sphinx-build -E -b doctest doc ./doc/_build/doctest
Expand Down