datetime.utcnow(), utcfromtimestamp() and utctimetuple() are deprecated since Python 3.12 [1]
This results in a lot of fails due to deprecation warnings
[1] https://docs.python.org/3.12/library/datetime.html?highlight=utcnow#datetime.datetime
datetime.utcnow(), utcfromtimestamp() and utctimetuple() are deprecated since Python 3.12 [1]
This results in a lot of fails due to deprecation warnings
[1] https://docs.python.org/3.12/library/datetime.html?highlight=utcnow#datetime.datetime
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T152961 Improve tests suite | |||
Open | None | T195826 Cleanup test warnings (goal) | |||
Resolved | Release | Xqt | T347020 Pywikibot 9 tasks (Tracking) | ||
Resolved | Xqt | T337748 datetime.utcnow(), utcfromtimestamp() and utctimetuple() are deprecated since Python 3.12 |
Change 924547 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [tests] Python 3.12 fails due to deprectated datetime.utcnow() function
Change 924547 merged by jenkins-bot:
[pywikibot/core@master] [tests] Python 3.12 fails due to deprectated datetime.utcnow() function
Change 934697 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [IMPR] add nowutc() method to pywikibot.Timestamp()
Change 934696 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [Fix] datetime.utcnow() is deprecated
Change 934697 abandoned by Xqt:
[pywikibot/core@master] [IMPR] add nowutc() method to pywikibot.Timestamp()
Reason:
Change 934696 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [Fix] datetime.utcnow() is deprecated
Change 999558 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [tests] ignore failing macOS due to T337748
Change 999558 merged by Xqt:
[pywikibot/core@master] [tests] ignore failing macOS due to T337748
Change 934696 merged by jenkins-bot:
[pywikibot/core@master] [Fix] datetime.utcnow() is deprecated; use Timestamp.nowutc() instead