test_sys globally requires _datetime for cpython_only test
Open
Nobody has claimed this yet.
3.13
3.14
3.15
tests
type-refactor
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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-143997
- gh-144003
- gh-144042
- gh-144143
- gh-144144
- gh-145248
- gh-146288
- gh-146289
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the test_sys module and inspect its top-level _datetime import alongside the cpython_only test. Confirm that _datetime is only needed by that test, then run the relevant test_sys checks to verify the import is scoped appropriately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100