Open tlambert03 opened 7 years ago
it's also perhaps worth pointing out that it would be enough for now to just comment out or add a @nottest
decorator to the test_datamodel/test_folder()
test to allow the tests to pass while this is figured out.
Not completely sure what's happening yet, but I'm making progress figuring out why the tests are failing on windows:
The failing test is just
tests/test_datamodel/test_folder()
. skip that test and the tests pass. Looks like the problem is caused whenDataModel.loadFromPath()
callssetContainer()
, which starts theDataLoadThread
QThread. I'm not exactly sure where the error then happens, but if _dataSourceChanged is emitted or setPos(0) is called before the thread is done, you get the QThread deletion error on windows that fails the tests...If I add a thread.finished.connect slot to the method, (as shown below), the
tests/test_datamodel/
tests will pass... but then I get aAttributeError: 'DataModel' object has no attribute 'pos'
error on spimagine/gui/mainwidget.py line 575:so in short, I don't have a global solution, since I don't quite understand the data loading / prefetching well enough yet. But that's a start...