Steps to replicate the issue:
py -3.12 pwb.py site_tests -v TestSiteProofreadinfo
What happens?:
tests: max_retries reduced from 15 to 1 test_cache_proofreadinfo_on_site_with_proofreadpage (__main__.TestSiteProofreadinfo.test_cache_proofreadinfo_on_site_with_proofreadpage) Test Site._cache_proofreadinfo(). ... ok test_cache_proofreadinfo_on_site_without_proofreadpage (__main__.TestSiteProofreadinfo.test_cache_proofreadinfo_on_site_without_proofreadpage) Test Site._cache_proofreadinfo(). ... Exception ignored in garbage collection: Traceback (most recent call last): File "D:\pwb\GIT\core\pywikibot\site\_basesite.py", line 187, in __getattr__ def __getattr__(self, attr): SystemError: <function BaseSite.family at 0x0000023AFBD87240> returned a result with an exception set ERROR ====================================================================== ERROR: test_cache_proofreadinfo_on_site_without_proofreadpage (__main__.TestSiteProofreadinfo.test_cache_proofreadinfo_on_site_without_proofreadpage) Test Site._cache_proofreadinfo(). ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\pwb\GIT\core\tests\site_tests.py", line 1236, in test_cache_proofreadinfo_on_site_without_proofreadpage site.proofread_index_ns File "D:\pwb\GIT\core\pywikibot\site\_basesite.py", line 198, in __getattr__ raise AttributeError(f'{type(self).__name__} instance has no ' AttributeError: APISite instance has no attribute 'proofread_index_ns'. Did you mean: 'proofread_page_ns'? ---------------------------------------------------------------------- Ran 2 tests in 1.739s FAILED (errors=1)
https://github.com/wikimedia/pywikibot/actions/runs/4647025294/jobs/8230498089
https://github.com/wikimedia/pywikibot/actions/runs/4647025294/jobs/8230498136
In short:
import pywikibot s = pywikibot.Site('en') s._cache_proofreadinfo() Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> s._cache_proofreadinfo() File "D:\pwb\GIT\core\pywikibot\site\_decorators.py", line 58, in callee raise UnknownExtensionError( pywikibot.exceptions.UnknownExtensionError: Method "_cache_proofreadinfo" is not implemented without the extension ProofreadPage s.proofread_index_ns Exception ignored in tp_clear of: <class 'cell'> Traceback (most recent call last): File "D:\pwb\GIT\core\pywikibot\site\_basesite.py", line 187, in __getattr__ def __getattr__(self, attr): SystemError: <function BaseSite.family at 0x000002196EF56480> returned a result with an exception set Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> s.proofread_index_ns File "D:\pwb\GIT\core\pywikibot\site\_basesite.py", line 198, in __getattr__ raise AttributeError(f'{type(self).__name__} instance has no ' AttributeError: APISite instance has no attribute 'proofread_index_ns'. Did you mean: 'proofread_page_ns'?
What should happen instead:
import pywikibot s = pywikibot.Site('en') s._cache_proofreadinfo() Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> s._cache_proofreadinfo() File "D:\pwb\GIT\core\pywikibot\site\_decorators.py", line 58, in callee raise UnknownExtensionError( pywikibot.exceptions.UnknownExtensionError: Method "_cache_proofreadinfo" is not implemented without the extension ProofreadPage s.proofread_index_ns Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> s.proofread_index_ns File "D:\pwb\GIT\core\pywikibot\site\_extensions.py", line 127, in proofread_index_ns self._cache_proofreadinfo() File "D:\pwb\GIT\core\pywikibot\site\_decorators.py", line 58, in callee raise UnknownExtensionError( pywikibot.exceptions.UnknownExtensionError: Method "_cache_proofreadinfo" is not implemented without the extension ProofreadPage
Software version:
Python 3.12a7 (works with 3.12a3-6)
Pywikibot 8.1.0dev3
Pywikibot 8.0.3