python-invoke fails to build with Python 3.14.0b1. 16 tests fail with SystemError: buffer overflow _____________ Local_.pty.when_pty_True_we_use_pty_fork_and_os_exec _____________ self = <runners.Local_.pty object at 0x7fd4da49bc50> @mock_pty() def when_pty_True_we_use_pty_fork_and_os_exec(self): "when pty=True, we use pty.fork and os.exec*" > self._run(_, pty=True) tests/runners.py:1551: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/runners.py:1533: in _run return _run(*args, **dict(kwargs, klass=_FastLocal)) tests/runners.py:65: in _run return klass(context).run(*args, **kwargs) ../BUILDROOT/usr/lib/python3.14/site-packages/invoke/runners.py:395: in run return self._run_body(command, **kwargs) ../BUILDROOT/usr/lib/python3.14/site-packages/invoke/runners.py:440: in _run_body self.start(command, self.opts["shell"], self.env) ../BUILDROOT/usr/lib/python3.14/site-packages/invoke/runners.py:1313: in start cols, rows = pty_size() ../BUILDROOT/usr/lib/python3.14/site-packages/invoke/terminals.py:125: in pty_size cols, rows = _pty_size() ../BUILDROOT/usr/lib/python3.14/site-packages/invoke/terminals.py:96: in _pty_size result = fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, buf) /usr/lib64/python3.14/unittest/mock.py:1170: in __call__ return self._mock_call(*args, **kwargs) /usr/lib64/python3.14/unittest/mock.py:1174: in _mock_call return self._execute_mock_call(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <MagicMock name='ioctl' id='140552170361520'> args = (<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, 21523, b'\x00\x00\x00\x00') kwargs = {}, effect = None def _execute_mock_call(self, /, *args, **kwargs): # separate from _increment_mock_call so that awaited functions are # executed separately from their call, also AsyncMock overrides this method effect = self.side_effect if effect is not None: if _is_exception(effect): raise effect elif not _callable(effect): result = next(effect) if _is_exception(result): raise result else: result = effect(*args, **kwargs) if result is not DEFAULT: return result if self._mock_return_value is not DEFAULT: return self.return_value if self._mock_delegate and self._mock_delegate.return_value is not DEFAULT: return self.return_value if self._mock_wraps is not None: > return self._mock_wraps(*args, **kwargs) E SystemError: buffer overflow /usr/lib64/python3.14/unittest/mock.py:1247: SystemError https://docs.python.org/3.14/whatsnew/3.14.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09022793-python-invoke/ For all our attempts to build python-invoke with Python 3.14, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-invoke/ 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.14: https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ Let us know here if you have any questions. Python 3.14 is planned to be included in Fedora 43. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14. 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.
*** Bug 2371949 has been marked as a duplicate of this bug. ***