Page MenuHomePhabricator

memento_tests.TestMementoArchive.test_newest fails
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:
pwb memento_tests -v TestMementoArchive.test_newest

What happens?:

tests: max_retries reduced from 15 to 1
test_newest (__main__.TestMementoArchive)
Test Archive for newest https://google.com. ... FAIL

======================================================================
FAIL: test_newest (__main__.TestMementoArchive)
Test Archive for newest https://google.com.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\memento_tests.py", line 52, in test_newest
    self.assertEqual(parsed.netloc, 'archive.ph')
AssertionError: 'arquivo.pt' != 'archive.ph'
- arquivo.pt
+ archive.ph


----------------------------------------------------------------------
Ran 1 test in 5.917s

FAILED (failures=1)

Software version
Pywikibot 7.5.0

Other information:
https://integration.wikimedia.org/ci/job/pywikibot-core-tox-deeptest-py36-docker/1468/console
https://github.com/wikimedia/pywikibot/runs/7369460947?check_suite_focus=true#step:9:10

Event Timeline

Xqt triaged this task as High priority.

Change 814272 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] Fix for memento_tests.TestMementoArchive.test_newest

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

Change 814272 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Fix for memento_tests.TestMementoArchive.test_newest

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