Commit febdbbe
committed
fix(tests): two-pass module loading to prevent MUGJ/MVTS cross-contamination
MUGJ and MVTS share 176 routine names (V1BOA, V1AC, etc.) with
different source code. The single-pass loop that registered and
exec'd each module sequentially could resolve cross-routine imports
(e.g. `import V1BOA1` inside V1BOA) against stale sys.modules
entries from whichever suite ran first.
Split into two passes:
1. Read code + register empty ModuleType shells in sys.modules
2. exec() code into each shell
This guarantees every `import RoutineName` during exec() resolves
to the current suite's module, eliminating order-dependent failures.1 parent 447d541 commit febdbbe
2 files changed
Lines changed: 45 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
| |||
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
290 | | - | |
| 297 | + | |
291 | 298 | | |
292 | 299 | | |
293 | | - | |
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
298 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
299 | 316 | | |
300 | 317 | | |
301 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
286 | 298 | | |
287 | 299 | | |
288 | 300 | | |
| |||
294 | 306 | | |
295 | 307 | | |
296 | 308 | | |
297 | | - | |
| 309 | + | |
298 | 310 | | |
299 | 311 | | |
300 | | - | |
301 | 312 | | |
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
305 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
306 | 328 | | |
307 | 329 | | |
308 | 330 | | |
| |||
0 commit comments