Repository navigation
test_sys globally requires _datetime for cpython_only test #143959
Copy link
Copy link
Open
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jan 17, 2026 - addedtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)and removedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jan 18, 2026 - changed the title
[-]test_sys.test_objecttypes requires _datetime[/-][+]test_sys globally requires _datetime for cpython_only test[/+]on Jan 18, 2026 - added3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes
on Jan 20, 2026 3 remaining items
@vstinner Yes, I am mostly working for RustPython. The test itself is compatible to non-cpython implementations. Just the import matters.
Reacted by Victor Stinner- added a commit that references this issue
on Mar 23, 2026
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Bug report
Bug description:
_datetime is only being used by
@cpython_onlytest, but imported on top levelCPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs