You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
The new pytest-subtest release 0.14.0 fails with Python 3.9 and 3.10. Here is a traceback we got for tests:
15:10:46 def _addSkip(self: TestCaseFunction, testcase: TestCase, reason: str) -> None:
15:10:46 from unittest.case import _SubTest # type: ignore[attr-defined]
15:10:46
15:10:46 if isinstance(testcase, _SubTest):
15:10:46 self._originaladdSkip(testcase, reason) # type: ignore[attr-defined]
15:10:46 if self._excinfo is not None:
15:10:46 exc_info = self._excinfo[-1]
15:10:46 self.addSubTest(testcase.test_case, testcase, exc_info) # type: ignore[attr-defined]
15:10:46 else:
15:10:46 # For python < 3.11: the non-subtest skips have to be added by `_originaladdSkip` only after all subtest
15:10:46 # failures are processed by `_addSubTest`.
15:10:46 if sys.version_info < (3, 11):
15:10:46 subtest_errors = [
15:10:46 x
15:10:46 > for x, y in self.instance._outcome.errors
15:10:46 if isinstance(x, _SubTest) and y is not None
15:10:46 ]
15:10:46 E AttributeError: 'NoneType' object has no attribute 'errors'
The new pytest-subtest release 0.14.0 fails with Python 3.9 and 3.10. Here is a traceback we got for tests:
See for example: https://integration.wikimedia.org/ci/job/pywikibot-core-tox-fasttest-py39/1805/console