Page MenuHomePhabricator

Some recentchanges generators of TestRecentChanges.test_time_range() gives no result
Closed, ResolvedPublicBUG REPORT

Description

Some recentchanges generators of site_generators_tests.TestRecentChanges.test_time_range() gives no result, e.g.:

for change in mysite.recentchanges(
        start=pywikibot.Timestamp.fromISOformat(
            '2008-10-01T01:02:03Z'),
        total=5):
    print('>>', change['timestamp'])
    self.assertIsInstance(change, dict)
    self.assertLessEqual(change['timestamp'], '2008-10-01T01:02:03Z')

never prints a timestamp.

Details

Event Timeline

Xqt triaged this task as High priority.May 17 2026, 10:56 AM
Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt moved this task from Backlog to New tests needed on the Pywikibot-tests board.

Change #1324019 had a related patch set uploaded (by Mahveotm; author: Mahveotm):

[pywikibot/core@master] tests: Use retained recentchanges data for time ranges

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

Mahveotm changed the task status from Open to In Progress.Aug 10 2026, 10:15 PM
Mahveotm claimed this task.
Mahveotm moved this task from Backlog to Needs Review on the Pywikibot board.

Change #1324019 merged by Xqt:

[pywikibot/core@master] tests: Use retained recentchanges data for time ranges

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