GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_sys globally requires _datetime for cpython_only test · Issue #143959 · python/cpython

test_sys globally requires _datetime for cpython_only test #143959

New issue
Copy link
New issue
Copy link
Open
Open
test_sys globally requires _datetime for cpython_only test#143959
Copy link
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

@youknowone
youknowone
opened on Jan 17, 2026
Issue body actions

Bug report

Bug description:

_datetime is only being used by @cpython_only test, but imported on top level

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

  • gh-143959: Split datetime tests requiring _datetime #143997
  • gh-143959: Make _datetime optional for test_sys #144003
  • gh-143959 Make _datetime,_types optional for test_types #144042
  • [3.14] gh-143959: Make _datetime optional for test_sys (GH-144003) #144143
  • [3.13] gh-143959: Make _datetime optional for test_sys (GH-144003) #144144
  • gh-143959: Fix test_datetime if _datetime is unavailable #145248
  • [3.14] gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248) #146288
  • [3.13] gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248) #146289

Activity

Next
  1. youknowone
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jan 17, 2026
  2. StanFromIreland
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Jan 17, 2026
  3. picnixz
    added
    type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
    and removed
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jan 18, 2026
  4. VanshAgarwal24036
    added a commit that references this issue on Jan 18, 2026

    pythongh-143959: Split datetime tests requiring _datetime

    df22dbc
  5. youknowone
    changed the title [-]test_sys.test_objecttypes requires _datetime[/-] [+]test_sys globally requires _datetime for cpython_only test[/+] on Jan 18, 2026
  6. youknowone
    added a commit that references this issue on Jan 18, 2026

    pythongh-143959 make test_sys import _datetime inside the test

    c881be5
  7. VanshAgarwal24036
    added a commit that references this issue on Jan 18, 2026

    pythongh-143959: Split datetime tests requiring _datetime

    3b42bcd
  8. youknowone
    added 3 commits that reference this issue on Jan 19, 2026

    pythongh-143959 Make _datetime optional for test_types

    a3b9317

    pythongh-143959: Make _types optional for test_types

    0ba4e85

    pythongh-143959: Make _types optional for test_types

    e17be43
  9. serhiy-storchaka
    added
    3.13only security fixesonly security fixes
    3.14bugs and security fixesbugs and security fixes
    3.15bugs and security fixesbugs and security fixes
    on Jan 20, 2026
  10. VanshAgarwal24036
    added a commit that references this issue on Jan 20, 2026

    pythongh-143959: Skip datetime Fast tests when _datetime absent

    ecfbbbd
  11. 3 remaining items

  12. miss-islington
    added 2 commits that reference this issue on Jan 22, 2026

    pythongh-143959: Make _datetime optional for test_sys (pythonGH-144003)

    e67612e

    pythongh-143959: Make _datetime optional for test_sys (pythonGH-144003)

    97bef04
  13. vstinner
    added 2 commits that reference this issue on Jan 22, 2026

    [3.13] gh-143959: Make _datetime optional for test_sys (GH-144003) (#…

    015b90d

    [3.14] gh-143959: Make _datetime optional for test_sys (GH-144003) (#…

    6ec9485
  14. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-143959: Make _datetime optional for test_sys (pythonGH-144003)

    8efd009
  15. youknowone commented on Feb 19, 2026

    @youknowone
    youknowone
    on Feb 19, 2026
    ContributorAuthor
    More actions

    @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
  16. serhiy-storchaka
    added 2 commits that reference this issue on Feb 26, 2026

    pythongh-143959: Fix test_datetime if _datetime is unavailable

    6c63822

    pythongh-143959: Fix test_datetime if _datetime is unavailable

    519b99e
  17. serhiy-storchaka
    added a commit that references this issue on Mar 22, 2026

    gh-143959: Fix test_datetime if _datetime is unavailable (GH-145248)

    97c725c
  18. miss-islington
    added 2 commits that reference this issue on Mar 22, 2026

    pythongh-143959: Fix test_datetime if _datetime is unavailable (pytho…

    f67f73d

    pythongh-143959: Fix test_datetime if _datetime is unavailable (pytho…

    23e190e
  19. serhiy-storchaka
    added 2 commits that reference this issue on Mar 22, 2026

    [3.13] gh-143959: Fix test_datetime if _datetime is unavailable (GH-1…

    0aa9153

    [3.14] gh-143959: Fix test_datetime if _datetime is unavailable (GH-1…

    114d1c3
  20. CuriousLearner
    added a commit that references this issue on Mar 23, 2026

    Merge branch 'main' of github.com:python/cpython into fix-pythongh-13…

    3e05fa3
  21. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-143959: Fix test_datetime if _datetime is unavailable (pytho…

    dba0fc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.