Skip to content

Commit

Permalink
Pin mongomock (IDSIA#934)
Browse files Browse the repository at this point in the history
* Enable pymongo tests for Python 3.10+ since mongomock now supports newer python versions

* Pin pymongo to a version before 4.9
  • Loading branch information
thequilo authored Oct 17, 2024
1 parent d728e32 commit 8562dc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tinydb
tinydb-serialization
wrapt
scikit-learn
pymongo
pymongo<4.9 # mongomock.gridfs.enable_gridfs_integration() is not compatible with pymongo>=4.9. https://github.com/mongomock/mongomock/issues/903
py-cpuinfo
boto3
moto
Expand Down
10 changes: 0 additions & 10 deletions tests/test_observers/test_queue_mongo_observer.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import datetime
from sacred.observers.queue import QueueObserver
import mock
import pytest
import sys

if sys.version_info >= (3, 10):
pytest.skip(
"Skip pymongo tests for Python 3.10 because mongomock doesn't "
"support Python 3.10",
allow_module_level=True,
)

from sacred.metrics_logger import ScalarMetricLogEntry, linearize_metrics

Expand All @@ -25,7 +16,6 @@
from sacred.observers.mongo import (
QueuedMongoObserver,
MongoObserver,
QueueCompatibleMongoObserver,
)
from .failing_mongo_mock import ReconnectingMongoClient

Expand Down

0 comments on commit 8562dc8

Please sign in to comment.