Repository navigation
Commit bda170b
committed
Avoid shadowed module filename in dynamic metadata fixture
The fixture left a stale __file__ value beneath a module subclass property.
LOAD_ATTR_MODULE specialization can read that value, making the assertion
depend on warmup state in the existing filename fallback, including main.
Remove the shadow value and exercise warmed getfile access, two changing
origins, and independent cold frame/traceback lookups. Keep production code
unchanged.
Verified the corrected test 50 times on each of main and the candidate;
all six focused suites pass (1,135 tests reported, four skipped).1 parent 6c72434 commit bda170b
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1158 | 1161 | | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1163 | 1174 | | |
1164 | 1175 | | |
1165 | 1176 | | |
| |||
0 commit comments