XZise has uploaded a new change for review.

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

Change subject: Identify which page is no redirect
......................................................................

Identify which page is no redirect

One hypothesis why the site tests tells that images are redirects
although it only queried non-redirects is that between iterating through
it and checking it changes to a redirect page. This prints the checked
page if it is a redirect in an attempt to verify that hypothesis.

Bug: 73120
Change-Id: I970099e8aaa9d558909ae9e1a8091aaf6f092829
---
M tests/site_tests.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/14/171814/1

diff --git a/tests/site_tests.py b/tests/site_tests.py
index df22137..2c06344 100644
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -696,6 +696,8 @@
         imagepage = self.imagepage
         for using in mysite.imageusage(imagepage, filterredir=False, total=5):
             self.assertIsInstance(using, pywikibot.Page)
+            if using.isRedirectPage():
+                print(using)
             self.assertFalse(using.isRedirectPage())
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/171814
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I970099e8aaa9d558909ae9e1a8091aaf6f092829
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <commodorefabia...@gmx.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to