-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure widgets can be garbage collected
To be more test friendly. Widgets (qargparse widgets in this case) were defined as class attributes (not in __init__), so it won't be garbage collected after main window closed, and signals are still connected. And somehow they still able to trigger the model which is created in next test session to do model reset. So how many tests has ran, how many reset signal will be emitted, to the same model, hence the test can easily got segfault (especially Linux).
- Loading branch information
1 parent
b0f3224
commit feed9c3
Showing
3 changed files
with
97 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters