https://bugzilla.wikimedia.org/show_bug.cgi?id=60214
Web browser: --- Bug ID: 60214 Summary: testImageusage in site_tests fails Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: mpaa.wiki@gmail.com Classification: Unclassified Mobile Platform: ---
Line 549 in site_tests.py fails: for using in mysite.imageusage(imagepage, namespaces=[3, 4], total=5): self.assertType(using, pywikibot.Page) self.assertTrue(imagepage in list(using.imagelinks())) --> fails
imagepage on main page (current 'Main Page' on ew:WP) is different from images in list(using.imagelinks()), in cached data in c:\users\...\AppData\Roaming\pywikibot\apicache\ff322b...
Cached data is used due to monkey patching in tests/__init__.py
https://bugzilla.wikimedia.org/show_bug.cgi?id=60214
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|General |tests
https://bugzilla.wikimedia.org/show_bug.cgi?id=60214
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Summary|testImageusage in |aggressive caching in test |site_tests fails |suite causes testImageusage | |in site_tests to fail
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- Retitling as we now have a different failure regularly occurring in the same test - bug 71971
pywikipedia-bugs@lists.wikimedia.org