# Tests broken by recent Python updates

**URL:** <https://discourse.slicer.org/t/tests-broken-by-recent-python-updates/214>\
**Category:** Development\
**Created:** [April 27, 2017, 5:06pm UTC](https://discourse.slicer.org/t/tests-broken-by-recent-python-updates/214 "2017-04-27T17:06:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 27, 2017, 5:06pm UTC](https://discourse.slicer.org/t/tests-broken-by-recent-python-updates/214/1 "2017-04-27T17:06:03Z")

</div>

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

[http://slicer.cdash.org/index.php?project=Slicer4&date=2017-04-25&filtercount=1&showfilters=1&field1=label&compare1=63&value1=Chest](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-04-25&filtercount=1&showfilters=1&field1=label&compare1=63&value1=Chest)

[http://slicer.cdash.org/index.php?project=Slicer4&date=2017-04-26&filtercount=1&showfilters=1&field1=label&compare1=63&value1=Chest](http://slicer.cdash.org/index.php?project=Slicer4&date=2017-04-26&filtercount=1&showfilters=1&field1=label&compare1=63&value1=Chest)

(also SlicerDMRI and others)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 27, 2017, 5:30pm UTC](https://discourse.slicer.org/t/tests-broken-by-recent-python-updates/214/2 "2017-04-27T17:30:31Z")

</div>

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.
