jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/892035 )
Change subject: [tests] Fix doctest
......................................................................
[tests] Fix doctest
Change-Id: I89e28e04c209462c3024d43963be7aab4cfd880b
---
M pywikibot/page/_filepage.py
1 file changed, 11 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py
index 2da1649..1916925 100644
--- a/pywikibot/page/_filepage.py
+++ b/pywikibot/page/_filepage.py
@@ -6,7 +6,7 @@
* FileInfo: a structure holding imageinfo of latest revision of FilePage
"""
#
-# (C) Pywikibot team, 2008-2022
+# (C) Pywikibot team, 2008-2023
#
# Distributed under the terms of the MIT license.
#
@@ -189,7 +189,7 @@
>>> file = pywikibot.FilePage(site, 'Pywikibot MW gear icon.svg')
>>> used = list(file.using_pages(total=10))
>>> len(used)
- 1
+ 2
>>> used[0].title()
'Pywikibot'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/892035
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I89e28e04c209462c3024d43963be7aab4cfd880b
Gerrit-Change-Number: 892035
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]