python-black fails to build with Python 3.11.0b3. =================================== FAILURES =================================== _______________________ BlackDTestCase.test_blackd_diff ________________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ________________ BlackDTestCase.test_blackd_invalid_line_length ________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ______________ BlackDTestCase.test_blackd_invalid_python_variant _______________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ____________________ BlackDTestCase.test_blackd_line_length ____________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError _______________________ BlackDTestCase.test_blackd_main ________________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ________________________ BlackDTestCase.test_blackd_pyi ________________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError __________________ BlackDTestCase.test_blackd_python_variant ___________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError _____________ BlackDTestCase.test_blackd_request_needs_formatting ______________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError _________________ BlackDTestCase.test_blackd_request_no_change _________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError _______________ BlackDTestCase.test_blackd_request_syntax_error ________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ___________ BlackDTestCase.test_blackd_response_black_version_header ___________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError _________________ BlackDTestCase.test_blackd_supported_version _________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ________________ BlackDTestCase.test_blackd_unsupported_version ________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ___________________ BlackDTestCase.test_cors_headers_present ___________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ______________________ BlackDTestCase.test_cors_preflight ______________________ /usr/lib64/python3.11/unittest/async_case.py:82: in _callSetUp self._asyncioTestContext.run(self.setUp) /usr/lib64/python3.11/site-packages/aiohttp/test_utils.py:463: in setUp self.loop.run_until_complete(self.setUpAsync()) /usr/lib64/python3.11/asyncio/base_events.py:625: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib64/python3.11/asyncio/base_events.py:519: RuntimeError ... =========================== short test summary info ============================ SKIPPED [1] tests/test_ipynb.py:22: IPython is an optional dependency SKIPPED [1] tests/test_black.py:1257: Incompatible Click version SKIPPED [2] tests/test_no_ipynb.py: Marked with disabled optional tests (no_jupyter) =========== 15 failed, 225 passed, 4 skipped, 35 warnings in 12.55s ============ https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04500522-python-black/ For all our attempts to build python-black with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-black/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.