Commit e67bd5a
committed
Fix test failures caused by type annotations
- Allow base_url to be None in split_url_reference and _skip_reference
to properly handle RefResolver without a URL context
- Remove early return when base_url is None to allow errors to propagate
as expected by test_resolver_noname
- Add None check before accessing base_url.path in _skip_reference
- Fix test_valid_pathname to use 300 characters instead of 256
to ensure it fails on all platforms (some systems allow 256-char names)
All tests now pass: 134 passed, 18 skipped (excluding network tests)1 parent a1c9379 commit e67bd5a
3 files changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| |||
231 | 227 | | |
232 | 228 | | |
233 | 229 | | |
234 | | - | |
| 230 | + | |
235 | 231 | | |
236 | 232 | | |
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
240 | | - | |
| 236 | + | |
241 | 237 | | |
242 | 238 | | |
243 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
0 commit comments