Just pass the tests - #113
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 5.0.x_dev #113 +/- ##
=============================================
+ Coverage 64.24% 64.28% +0.04%
=============================================
Files 73 73
Lines 9137 9156 +19
=============================================
+ Hits 5870 5886 +16
- Misses 3267 3270 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
seb5g
left a comment
There was a problem hiding this comment.
could you tell what you did a bit more explicitly?
| return descriptors | ||
|
|
||
|
|
||
| class ROIMixin(QtCore.QObject): |
There was a problem hiding this comment.
if it's not inheriting from QObject one cannot create and use signal. I guess because it's a mixin, it's no big deal if used within another class inheriting from QObject? Or maybe that was the issue?
There was a problem hiding this comment.
As it's a Mixin class it's not supposed to be used by itself and it's actually used by another class inheriting QObject. So in the end, QObject was initialized twice. When done in normal execution it's fine (or at least it doesn't crash) but in pytest it seems to be the source of segfaults.
I tried several ways to solve the problem but this was the only functional one.
There was a problem hiding this comment.
ok understood! THere are still tests not working ;-)
|
One problem I have and can't seem to solve is with the test @Ashwolaa How is it different than the one directly before, |
Hum strange. With PyQt6, the tests are passing on my config (fresh install though).
Yeah, that is correct. One is just checking by stacking all the signals while the other is only waiting for the first one to come but they are roughly equivalent. We can remove/merge it if you prefer. |
|
Yes, the issue only appear with PySide6, but I'm not sure the test is wrong, because even when replacing it with |
|
Should be good, everything pass now! |
|
You fixed pyside6! |
Finally solved!