Repository navigation
Commit eb45857
committed
tests: skip checkpoint tests when transformers is absent
If torch is installed but transformers is not, model loading raises an
install-hint error before config.json is read. Both new checkpoint tests
would then fail on the filename assertion even though Guard behaves
correctly. Guard both with pytest.importorskip('transformers').
Fixes P2 raised in Greptile review.1 parent 41eb7d0 commit eb45857
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
561 | 562 | | |
562 | 563 | | |
563 | 564 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| 584 | + | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
| |||
0 commit comments