Test data paths may be added multiple times to cdl.utils.tests.TST_PATH
#85
Labels
bug
Something isn't working
cdl.utils.tests.TST_PATH
#85
While writing the post-release V0.16.2 report regarding issues with Debian packaging (see #84), I realized that test data paths may be added multiple times to the global list of strings
cdl.utils.tests.TST_PATH
. Test utility functions such asget_test_fnames
rely on this list of paths to collect data files for testing purpose.However, path were added to this list without checking anything - and especially without checking if the added path had already been added to the list. This was the real cause of the
reorder_app_test
failure reported in #84: the "reorder*.h5" data file was loaded twice in DataLab workspace because the data path (cdl/tests/data) was added twice to theTST_PATH
list.This has to be fixed by adding the following lines to
cdl.utils.tests
:The text was updated successfully, but these errors were encountered: