Skip to content

Improve widget clean up in test_widget_hide_destroy#6741

Merged
jni merged 1 commit intonapari:mainfrom
lucyleeow:fix_widget_test
Apr 15, 2024
Merged

Improve widget clean up in test_widget_hide_destroy#6741
jni merged 1 commit intonapari:mainfrom
lucyleeow:fix_widget_test

Conversation

@lucyleeow
Copy link
Copy Markdown
Contributor

@lucyleeow lucyleeow commented Mar 13, 2024

References and relevant issues

Follow on from #4991
see: #4991 (comment)

Description

Better naming in test_widget_hide_destroy
Adds more widget clean up steps. The tests passes fine currently but Draga suggested it was best to add these back.

@lucyleeow
Copy link
Copy Markdown
Contributor Author

cc @DragaDoncila

@lucyleeow lucyleeow added the maintenance PR with maintance changes, label Mar 13, 2024
@lucyleeow lucyleeow added this to the 0.5.0 milestone Mar 13, 2024
@lucyleeow lucyleeow changed the title fix test Improve widget clean up in test_widget_hide_destroy Mar 13, 2024
@github-actions github-actions Bot added tests Something related to our tests qt Relates to qt labels Mar 13, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.29%. Comparing base (fa0c3b1) to head (985f2fc).
Report is 51 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6741      +/-   ##
==========================================
- Coverage   92.34%   92.29%   -0.05%     
==========================================
  Files         613      613              
  Lines       54713    54716       +3     
==========================================
- Hits        50525    50502      -23     
- Misses       4188     4214      +26     

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

@DragaDoncila
Copy link
Copy Markdown
Contributor

@Czaki I suggested to Lucy that these be added back because I thought when we destroy the enclosing dock_widget, the widget will become unparented and so may leak? But it would be good if you could confirm

@lucyleeow
Copy link
Copy Markdown
Contributor Author

ping @Czaki

@jni jni added the ready to merge Last chance for comments! Will be merged in ~24h label Apr 12, 2024
@jni jni merged commit 327d77d into napari:main Apr 15, 2024
@github-actions github-actions Bot removed the ready to merge Last chance for comments! Will be merged in ~24h label Apr 15, 2024
@lucyleeow lucyleeow deleted the fix_widget_test branch April 15, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance PR with maintance changes, qt Relates to qt tests Something related to our tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants