Tests broken by recent Python updates

Something in the changes between 25945 and 25971 seems to have broken a number of Python tests in extensions, e.g.:



(also SlicerDMRI and others)

Before rev 25970, many Python tests were actually not executed. Now they are, so you can expect test errors to show up. You have to review and fix those tests.

Details: There was a problem in CTK argument parser that made all parameters after --additional-module-paths argument ignored (all further arguments were interpreted as additional paths). All python tests that relied on running a python script using --python-script actually did not test anything, just started Slicer and quit.

1 Like