You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use specs instead of just __loader__ in C code #86298
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-10-23.22:16:01.448>labels= ['interpreter-core', 'type-bug', '3.10']
title='Use specs instead of just __loader__ in C code'updated_at=<Date2020-10-24.16:28:23.690>user='https://github.com/brettcannon'
I think there's nothing to do for pythonrun.c. These set __loader__ but not __spec__ directly, and the documentation outlines the expected semantics. If the documented semantics are incorrect, then there should be a separate tracking bug for that case.
Activity
brettcannon commentedon Oct 23, 2020
_warnings.c, pylifecycle.c, and pythonrun.c all either use or set
__loader__but without also falling back on__spec__.warsaw commentedon Oct 3, 2022
I'm going to take a look at these module attribute issues during the 2022 core sprint.
warsaw commentedon Oct 4, 2022
I have
_warnings.cimplemented and tested.warsaw commentedon Oct 4, 2022
I think there's nothing to do for
pythonrun.c. These set__loader__but not__spec__directly, and the documentation outlines the expected semantics. If the documented semantics are incorrect, then there should be a separate tracking bug for that case.Looking at
pylifecycle.cnext.7 remaining items
PoC for checking both __loader__ and __spec__.loader
pythongh-122191: Fix test_warnings failure if run with -Werror
pythongh-86298: Add black box tests in test_warnings
serhiy-storchaka commentedon Jul 25, 2024
These warnings are only emitted for the C implementation. See #122255.
gh-122191: Fix test_warnings failure if run with -Werror (GH-122222)
pythongh-122191: Fix test_warnings failure if run with -Werror (pytho…
[3.12] pythongh-122191: Fix test_warnings failure if run with -Werror (…
[3.12] gh-122191: Fix test_warnings failure if run with -Werror (GH-1…
[3.13] gh-122191: Fix test_warnings failure if run with -Werror (GH-1…
gh-122255: Add black box tests in test_warnings (GH-122227)
pythongh-122255: Add black box tests in test_warnings (pythonGH-122227)
pythongh-122255: Add black box tests in test_warnings (pythonGH-122227)
[3.13] gh-122255: Add black box tests in test_warnings (GH-122227) (G…
[3.12] gh-122255: Add black box tests in test_warnings (GH-122227) (G…
pythongh-122255: Add black box tests in test_warnings (pythonGH-122227)