Skip to content

TST Fix test_conversion_missing#341

Merged
jni merged 2 commits intonapari:mainfrom
lucyleeow:fix_pgkerror
Mar 8, 2024
Merged

TST Fix test_conversion_missing#341
jni merged 2 commits intonapari:mainfrom
lucyleeow:fix_pgkerror

Conversation

@lucyleeow
Copy link
Copy Markdown
Contributor

@lucyleeow lucyleeow commented Mar 8, 2024

This test is failing in CIs in #340.

I think it is because there is no warning raised (not sure why the UserWarning is there). It used to pass because of this bug in pytest pytest-dev/pytest#9036, but this was fixed in pytest-dev/pytest#11129 and included in a recent release, thus our CIs are failing.

Note that I have update the test to be more specific about the exception raised (PackageNotFoundError) but it is not needed, subclass exceptions are still accepted by pytest. Also added a message to be more specific.

@lucyleeow
Copy link
Copy Markdown
Contributor Author

cc @DragaDoncila

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (595b088) to head (3b3ac44).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #341   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        37           
  Lines         2750      2750           
=========================================
  Hits          2750      2750           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@DragaDoncila DragaDoncila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, looks great to me thanks @lucyleeow

@jni jni merged commit 37d4ba4 into napari:main Mar 8, 2024
@lucyleeow lucyleeow deleted the fix_pgkerror branch March 8, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants