Repository navigation
Commit aa6553a
committed
test: assert finder pass-through via find_spec, not real import
test_finder_does_not_shadow_real_v3_packages imported sagemaker.train /
sagemaker.serve to prove the fallback finder does not shadow them. That
assumed those packages are installed -- but the sagemaker-core unit-test
CI job installs sagemaker-core only, so the import raised
ModuleNotFoundError and the test failed.
Assert the actual contract instead: the finder's find_spec() returns None
(pass-through) for real v3 top-level packages, which needs no import and
holds in a core-only environment. Also covers mlops and lineage.1 parent 15eb00b commit aa6553a
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
148 | | - | |
149 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
150 | 164 | | |
151 | 165 | | |
152 | 166 | | |
| |||
0 commit comments