-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Synchro 3.12 is failing since MOTOR-1210:
[2023/11/09 12:57:05.658] ==================================== ERRORS ==================================== [2023/11/09 12:57:05.658] ____________ ERROR at setup of TestGSSAPI.test_credentials_hashing _____________ [2023/11/09 12:57:05.658] @pytest.fixture(scope="session", autouse=True) [2023/11/09 12:57:05.658] def test_setup_and_teardown(): [2023/11/09 12:57:05.658] > setup() [2023/11/09 12:57:05.658] test/conftest.py:10: [2023/11/09 12:57:05.658] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2023/11/09 12:57:05.658] test/__init__.py:1148: in setup [2023/11/09 12:57:05.658] client_context.init() [2023/11/09 12:57:05.658] test/__init__.py:478: in init [2023/11/09 12:57:05.658] self._init_client() [2023/11/09 12:57:05.658] test/__init__.py:341: in _init_client [2023/11/09 12:57:05.658] self.client = self._connect(host, port) [2023/11/09 12:57:05.658] test/__init__.py:324: in _connect [2023/11/09 12:57:05.658] client.admin.command("ping") # Can we connect? [2023/11/09 12:57:05.658] ../../../../synchro/__init__.py:140: in _wrap_synchro [2023/11/09 12:57:05.658] motor_obj = fn(*args, **kwargs) [2023/11/09 12:57:05.658] ../../../../synchro/__init__.py:198: in _unwrap_synchro [2023/11/09 12:57:05.658] return fn(*args, **kwargs) [2023/11/09 12:57:05.658] ../../../../synchro/__init__.py:340: in synchronized_method [2023/11/09 12:57:05.658] return IOLoop.current().run_sync(partial) [2023/11/09 12:57:05.658] ../../lib/python3.12/site-packages/tornado/ioloop.py:262: in current [2023/11/09 12:57:05.658] loop = asyncio.get_event_loop() [2023/11/09 12:57:05.658] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2023/11/09 12:57:05.658] self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7fce3234b1a0> [2023/11/09 12:57:05.658] def get_event_loop(self): [2023/11/09 12:57:05.658] """Get the event loop for the current context. [2023/11/09 12:57:05.658] Returns an instance of EventLoop or raises an exception. [2023/11/09 12:57:05.658] """ [2023/11/09 12:57:05.658] if (self._local._loop is None and [2023/11/09 12:57:05.658] not self._local._set_called and [2023/11/09 12:57:05.658] threading.current_thread() is threading.main_thread()): [2023/11/09 12:57:05.658] stacklevel = 2 [2023/11/09 12:57:05.658] try: [2023/11/09 12:57:05.658] f = sys._getframe(1) [2023/11/09 12:57:05.658] except AttributeError: [2023/11/09 12:57:05.658] pass [2023/11/09 12:57:05.658] else: [2023/11/09 12:57:05.658] # Move up the call stack so that the warning is attached [2023/11/09 12:57:05.658] # to the line outside asyncio itself. [2023/11/09 12:57:05.658] while f: [2023/11/09 12:57:05.658] module = f.f_globals.get('__name__') [2023/11/09 12:57:05.658] if not (module == 'asyncio' or module.startswith('asyncio.')): [2023/11/09 12:57:05.658] break [2023/11/09 12:57:05.658] f = f.f_back [2023/11/09 12:57:05.658] stacklevel += 1 [2023/11/09 12:57:05.658] import warnings [2023/11/09 12:57:05.658] > warnings.warn('There is no current event loop', [2023/11/09 12:57:05.658] DeprecationWarning, stacklevel=stacklevel) [2023/11/09 12:57:05.658] E DeprecationWarning: There is no current event loop [2023/11/09 12:57:05.658] /opt/python/3.12/lib/python3.12/asyncio/events.py:693: DeprecationWarning
Similar problem as PYTHON-4033.
- is caused by
-
MOTOR-1210 Update pre-commit to match PyMongo Checks
- Closed