lightly-ai / lightly

A python library for self-supervised learning on images.
https://docs.lightly.ai/self-supervised-learning/
MIT License
3.09k stars 264 forks source link

Fix unittest warning handling with pytest 8.0 #1489

Closed guarin closed 8 months ago

guarin commented 8 months ago

Changes

This fixes a bug where our unit tests recently started failing due to the deprecation. Example of failing test: https://github.com/lightly-ai/lightly/actions/runs/7708499394/job/21007710296

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (6bd7553) 84.38% compared to head (d34c781) 84.40%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1489 +/- ## ========================================== + Coverage 84.38% 84.40% +0.02% ========================================== Files 139 139 Lines 5756 5777 +21 ========================================== + Hits 4857 4876 +19 - Misses 899 901 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.