Page MenuHomePhabricator

RuntimeError in TestWriteNormalizeLang.test_normalize_lang with Python 3.8
Closed, ResolvedPublic

Description

C:\pwb\GIT\core>pwb -lang:en wikibase_tests -v TestWriteNormalizeLang.test_normalize_lang
C:\pwb\GIT\core\pywikibot\config2.py:1136: _ConfigurationDeprecationWarning: "sysopnames" present in our user-config.py is no longer a supported configuration variable. Please inform the maintainers if you depend on it.
  warn('"{0}" present in our user-config.py is no longer a supported '
tests: max_retries reduced from 15 to 1
test_normalize_lang (__main__.TestWriteNormalizeLang)
Test _normalizeLanguages() method. ... ERROR

======================================================================
ERROR: test_normalize_lang (__main__.TestWriteNormalizeLang)
Test _normalizeLanguages() method.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\wikibase_tests.py", line 1823, in test_normalize_lang
    response = WikibasePage._normalizeLanguages(lang_in)
  File "C:\pwb\GIT\core\pywikibot\page.py", line 4168, in _normalizeLanguages
    for key in data:
RuntimeError: dictionary keys changed during iteration

----------------------------------------------------------------------
Ran 1 test in 0.045s

FAILED (errors=1)

C:\pwb\GIT\core>RuntimeError: dictionary keys changed during iteration

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Nov 19 2019, 9:36 AM

Change 551781 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Fix RuntimeError in Python 3.8

https://gerrit.wikimedia.org/r/551781

Change 551781 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix RuntimeError in Python 3.8

https://gerrit.wikimedia.org/r/551781

xSavitar lowered the priority of this task from High to Low.Nov 19 2019, 1:11 PM