diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-19 09:12:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-19 09:12:11 +0300 |
commit | 2ecb9856bc3a77354c9785a7119a0904d11e0d8c (patch) | |
tree | fb8f546a21f268ac9a60e159006e84048d33d684 /tests | |
parent | 9649c6bef548a799ea620a4ac1abce7935849f2e (diff) |
Cleanup: move copy-paste code into function
Diffstat (limited to 'tests')
112 files changed, 124 insertions, 666 deletions
diff --git a/tests/python/render_layer/render_layer_common.py b/tests/python/render_layer/render_layer_common.py index 70bd943557b..f6e16459ed3 100644 --- a/tests/python/render_layer/render_layer_common.py +++ b/tests/python/render_layer/render_layer_common.py @@ -783,3 +783,15 @@ class Clay: self._update() self._properties[name].use(data_path) setattr(self._properties[name], data_path, value) + + +def setup_extra_arguments(filepath): + """ + Create a value which is assigned to: ``UnitTesting._extra_arguments`` + """ + import sys + + extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] + sys.argv = [filepath] + extra_arguments[1:] + + return extra_arguments diff --git a/tests/python/render_layer/test_active_collection.py b/tests/python/render_layer/test_active_collection.py index 6e1438ab594..0094400f2a5 100644 --- a/tests/python/render_layer/test_active_collection.py +++ b/tests/python/render_layer/test_active_collection.py @@ -66,10 +66,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_collection_rename.py b/tests/python/render_layer/test_collection_rename.py index 596eea7135d..5cab6c10102 100644 --- a/tests/python/render_layer/test_collection_rename.py +++ b/tests/python/render_layer/test_collection_rename.py @@ -72,10 +72,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_a.py b/tests/python/render_layer/test_evaluation_render_settings_a.py index 62565adaff1..3a763dff5b1 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_a.py +++ b/tests/python/render_layer/test_evaluation_render_settings_a.py @@ -29,10 +29,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_b.py b/tests/python/render_layer/test_evaluation_render_settings_b.py index 64475dabfc3..01536e7edb1 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_b.py +++ b/tests/python/render_layer/test_evaluation_render_settings_b.py @@ -30,10 +30,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_c.py b/tests/python/render_layer/test_evaluation_render_settings_c.py index 325a4efdfc0..62450fac771 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_c.py +++ b/tests/python/render_layer/test_evaluation_render_settings_c.py @@ -29,10 +29,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_d.py b/tests/python/render_layer/test_evaluation_render_settings_d.py index faa3d437aca..cf29c4928a7 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_d.py +++ b/tests/python/render_layer/test_evaluation_render_settings_d.py @@ -29,10 +29,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_e.py b/tests/python/render_layer/test_evaluation_render_settings_e.py index 4e3fe221923..664fae7a208 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_e.py +++ b/tests/python/render_layer/test_evaluation_render_settings_e.py @@ -30,10 +30,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_f.py b/tests/python/render_layer/test_evaluation_render_settings_f.py index 1c69c1588af..47da4e65fcf 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_f.py +++ b/tests/python/render_layer/test_evaluation_render_settings_f.py @@ -31,10 +31,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_g.py b/tests/python/render_layer/test_evaluation_render_settings_g.py index 99c4c0e34e0..81f31fed410 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_g.py +++ b/tests/python/render_layer/test_evaluation_render_settings_g.py @@ -31,10 +31,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_h.py b/tests/python/render_layer/test_evaluation_render_settings_h.py index a21e14a4624..b6f61ddb031 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_h.py +++ b/tests/python/render_layer/test_evaluation_render_settings_h.py @@ -31,10 +31,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_render_settings_i.py b/tests/python/render_layer/test_evaluation_render_settings_i.py index 256ae76aa92..1ce307deb70 100644 --- a/tests/python/render_layer/test_evaluation_render_settings_i.py +++ b/tests/python/render_layer/test_evaluation_render_settings_i.py @@ -31,10 +31,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_selectability_a.py b/tests/python/render_layer/test_evaluation_selectability_a.py index 4c3ea5fce4b..6faebac79aa 100644 --- a/tests/python/render_layer/test_evaluation_selectability_a.py +++ b/tests/python/render_layer/test_evaluation_selectability_a.py @@ -49,10 +49,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_selectability_b.py b/tests/python/render_layer/test_evaluation_selectability_b.py index 0c6a1e2dd9c..f2a11865d09 100644 --- a/tests/python/render_layer/test_evaluation_selectability_b.py +++ b/tests/python/render_layer/test_evaluation_selectability_b.py @@ -51,10 +51,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_selectability_c.py b/tests/python/render_layer/test_evaluation_selectability_c.py index b98294da874..5ec6d6e7d9c 100644 --- a/tests/python/render_layer/test_evaluation_selectability_c.py +++ b/tests/python/render_layer/test_evaluation_selectability_c.py @@ -49,10 +49,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_selectability_d.py b/tests/python/render_layer/test_evaluation_selectability_d.py index 651c44da328..3ce9c07c907 100644 --- a/tests/python/render_layer/test_evaluation_selectability_d.py +++ b/tests/python/render_layer/test_evaluation_selectability_d.py @@ -52,10 +52,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_selectability_e.py b/tests/python/render_layer/test_evaluation_selectability_e.py index 633f368ee71..df308845292 100644 --- a/tests/python/render_layer/test_evaluation_selectability_e.py +++ b/tests/python/render_layer/test_evaluation_selectability_e.py @@ -51,10 +51,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_selectability_f.py b/tests/python/render_layer/test_evaluation_selectability_f.py index c8d00164ab7..7fddfa54b04 100644 --- a/tests/python/render_layer/test_evaluation_selectability_f.py +++ b/tests/python/render_layer/test_evaluation_selectability_f.py @@ -39,10 +39,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_a.py b/tests/python/render_layer/test_evaluation_visibility_a.py index 58e2f12760e..a3a6bb261f5 100644 --- a/tests/python/render_layer/test_evaluation_visibility_a.py +++ b/tests/python/render_layer/test_evaluation_visibility_a.py @@ -49,10 +49,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_b.py b/tests/python/render_layer/test_evaluation_visibility_b.py index 1e8276cb796..4f81cd540e2 100644 --- a/tests/python/render_layer/test_evaluation_visibility_b.py +++ b/tests/python/render_layer/test_evaluation_visibility_b.py @@ -49,10 +49,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_c.py b/tests/python/render_layer/test_evaluation_visibility_c.py index 92f73d65e1e..6b88f6e3c3a 100644 --- a/tests/python/render_layer/test_evaluation_visibility_c.py +++ b/tests/python/render_layer/test_evaluation_visibility_c.py @@ -49,10 +49,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_d.py b/tests/python/render_layer/test_evaluation_visibility_d.py index d7beae960a5..b19166bd750 100644 --- a/tests/python/render_layer/test_evaluation_visibility_d.py +++ b/tests/python/render_layer/test_evaluation_visibility_d.py @@ -46,10 +46,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_e.py b/tests/python/render_layer/test_evaluation_visibility_e.py index f9bb35eb02e..f9f11cb8f23 100644 --- a/tests/python/render_layer/test_evaluation_visibility_e.py +++ b/tests/python/render_layer/test_evaluation_visibility_e.py @@ -49,10 +49,6 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + # XXX, above statement is not true, why skip the first argument? + UnitTesting._extra_arguments = setup_extra_arguments(__file__)[1:] unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_f.py b/tests/python/render_layer/test_evaluation_visibility_f.py index e8334c9269c..497087cb9ca 100644 --- a/tests/python/render_layer/test_evaluation_visibility_f.py +++ b/tests/python/render_layer/test_evaluation_visibility_f.py @@ -50,10 +50,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_g.py b/tests/python/render_layer/test_evaluation_visibility_g.py index c9faf65538e..eb8d3fa8177 100644 --- a/tests/python/render_layer/test_evaluation_visibility_g.py +++ b/tests/python/render_layer/test_evaluation_visibility_g.py @@ -26,10 +26,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_h.py b/tests/python/render_layer/test_evaluation_visibility_h.py index 7785cc0c1a7..9b47d0602b6 100644 --- a/tests/python/render_layer/test_evaluation_visibility_h.py +++ b/tests/python/render_layer/test_evaluation_visibility_h.py @@ -26,10 +26,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_evaluation_visibility_i.py b/tests/python/render_layer/test_evaluation_visibility_i.py index da72c1f33ba..47cde444a66 100644 --- a/tests/python/render_layer/test_evaluation_visibility_i.py +++ b/tests/python/render_layer/test_evaluation_visibility_i.py @@ -26,10 +26,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_layer_linking.py b/tests/python/render_layer/test_layer_linking.py index 5b564922c45..b0cd576d915 100644 --- a/tests/python/render_layer/test_layer_linking.py +++ b/tests/python/render_layer/test_layer_linking.py @@ -105,10 +105,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_layer_syncing.py b/tests/python/render_layer/test_layer_syncing.py index e8c6f92ab09..9ebfe437698 100644 --- a/tests/python/render_layer/test_layer_syncing.py +++ b/tests/python/render_layer/test_layer_syncing.py @@ -109,10 +109,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_a.py b/tests/python/render_layer/test_move_above_below_layer_collection_a.py index 16da5a651b7..a36f1f56543 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_a.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_a.py @@ -44,10 +44,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_b.py b/tests/python/render_layer/test_move_above_below_layer_collection_b.py index 59141ab1aed..373af511e3f 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_b.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_b.py @@ -44,10 +44,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_c.py b/tests/python/render_layer/test_move_above_below_layer_collection_c.py index 59141ab1aed..373af511e3f 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_c.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_c.py @@ -44,10 +44,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_d.py b/tests/python/render_layer/test_move_above_below_layer_collection_d.py index e0e6185fe65..8fb1589f741 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_d.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_d.py @@ -44,10 +44,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_e.py b/tests/python/render_layer/test_move_above_below_layer_collection_e.py index a3b9f29def0..e9b5ab5dbd9 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_e.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_e.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_f.py b/tests/python/render_layer/test_move_above_below_layer_collection_f.py index 9a0bb4873e8..7b2d00bde2c 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_f.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_f.py @@ -96,10 +96,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_g.py b/tests/python/render_layer/test_move_above_below_layer_collection_g.py index 4d9b0224d5b..c1b85fb357d 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_g.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_g.py @@ -77,10 +77,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_h.py b/tests/python/render_layer/test_move_above_below_layer_collection_h.py index e582011fb93..090a3c4a49e 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_h.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_h.py @@ -62,10 +62,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_i.py b/tests/python/render_layer/test_move_above_below_layer_collection_i.py index 90814d8d621..12aa858ffae 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_i.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_i.py @@ -69,10 +69,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_j.py b/tests/python/render_layer/test_move_above_below_layer_collection_j.py index d90b017a2d7..af92abac2d3 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_j.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_j.py @@ -59,10 +59,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_k.py b/tests/python/render_layer/test_move_above_below_layer_collection_k.py index ee74e2989e8..74dc68d986f 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_k.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_k.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_layer_collection_l.py b/tests/python/render_layer/test_move_above_below_layer_collection_l.py index 036886a4c47..aebef498f26 100644 --- a/tests/python/render_layer/test_move_above_below_layer_collection_l.py +++ b/tests/python/render_layer/test_move_above_below_layer_collection_l.py @@ -56,10 +56,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_a.py b/tests/python/render_layer/test_move_above_below_scene_collection_a.py index 8c1d31afb94..b53370befaf 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_a.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_a.py @@ -76,10 +76,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_b.py b/tests/python/render_layer/test_move_above_below_scene_collection_b.py index 360f36328e2..1eb62d5bfbd 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_b.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_b.py @@ -65,10 +65,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_c.py b/tests/python/render_layer/test_move_above_below_scene_collection_c.py index e80151120bc..c482376a761 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_c.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_c.py @@ -47,10 +47,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_d.py b/tests/python/render_layer/test_move_above_below_scene_collection_d.py index 4e928ca3d7f..1fce4cd5b62 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_d.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_d.py @@ -56,10 +56,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_e.py b/tests/python/render_layer/test_move_above_below_scene_collection_e.py index 5251119feab..797e1fe3fa6 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_e.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_e.py @@ -56,10 +56,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_f.py b/tests/python/render_layer/test_move_above_below_scene_collection_f.py index 6e0a04360c8..6616e4135e7 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_f.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_f.py @@ -47,10 +47,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_g.py b/tests/python/render_layer/test_move_above_below_scene_collection_g.py index 5a094914eb6..b4ac53c7bbe 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_g.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_g.py @@ -40,10 +40,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_h.py b/tests/python/render_layer/test_move_above_below_scene_collection_h.py index 7769df8c270..a1da80ef2ac 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_h.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_h.py @@ -80,10 +80,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_i.py b/tests/python/render_layer/test_move_above_below_scene_collection_i.py index fbffd8c0a5f..80574558cce 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_i.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_i.py @@ -56,10 +56,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_a.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_a.py index 56813179ee2..d562e220c0d 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_a.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_a.py @@ -76,10 +76,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_b.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_b.py index 5418c75e04a..e9bcbd3f956 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_b.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_b.py @@ -65,10 +65,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_c.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_c.py index 145fd0e168e..f740e4ddd25 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_c.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_c.py @@ -47,10 +47,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_d.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_d.py index 6e013ad32ca..b71bce092f9 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_d.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_d.py @@ -56,10 +56,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_e.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_e.py index 33e90ad9439..2e708503742 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_e.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_e.py @@ -56,10 +56,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_f.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_f.py index fd7a2bd1daf..3e84ebc4096 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_f.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_f.py @@ -47,10 +47,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_g.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_g.py index f15d3a5dfe3..62ecbf273c4 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_g.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_g.py @@ -40,10 +40,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_h.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_h.py index 6caff710085..a2a24f8848e 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_h.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_h.py @@ -80,10 +80,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_above_below_scene_collection_sync_i.py b/tests/python/render_layer/test_move_above_below_scene_collection_sync_i.py index 02f304f9068..8d9ef808f42 100644 --- a/tests/python/render_layer/test_move_above_below_scene_collection_sync_i.py +++ b/tests/python/render_layer/test_move_above_below_scene_collection_sync_i.py @@ -56,10 +56,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_a.py b/tests/python/render_layer/test_move_into_layer_collection_a.py index b365a81c197..46e53ebb2fb 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_a.py +++ b/tests/python/render_layer/test_move_into_layer_collection_a.py @@ -65,10 +65,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_b.py b/tests/python/render_layer/test_move_into_layer_collection_b.py index eeaaac7fb8b..20c2e9e453f 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_b.py +++ b/tests/python/render_layer/test_move_into_layer_collection_b.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_c.py b/tests/python/render_layer/test_move_into_layer_collection_c.py index 52dc66d5a49..4a547a2e08c 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_c.py +++ b/tests/python/render_layer/test_move_into_layer_collection_c.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_d.py b/tests/python/render_layer/test_move_into_layer_collection_d.py index 96ce8703212..7ca24a3265c 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_d.py +++ b/tests/python/render_layer/test_move_into_layer_collection_d.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_e.py b/tests/python/render_layer/test_move_into_layer_collection_e.py index b46cd8cd202..f235d575090 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_e.py +++ b/tests/python/render_layer/test_move_into_layer_collection_e.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_f.py b/tests/python/render_layer/test_move_into_layer_collection_f.py index 8c0f9bcebbc..5a4267f107d 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_f.py +++ b/tests/python/render_layer/test_move_into_layer_collection_f.py @@ -82,10 +82,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_g.py b/tests/python/render_layer/test_move_into_layer_collection_g.py index fa3264cbfc4..6845d13aa2f 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_g.py +++ b/tests/python/render_layer/test_move_into_layer_collection_g.py @@ -73,10 +73,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_h.py b/tests/python/render_layer/test_move_into_layer_collection_h.py index 064e529cc2b..294a0054083 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_h.py +++ b/tests/python/render_layer/test_move_into_layer_collection_h.py @@ -72,10 +72,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_i.py b/tests/python/render_layer/test_move_into_layer_collection_i.py index a42d13bb2eb..a29ff607c47 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_i.py +++ b/tests/python/render_layer/test_move_into_layer_collection_i.py @@ -36,10 +36,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_layer_collection_j.py b/tests/python/render_layer/test_move_into_layer_collection_j.py index 700d6a7fe3c..fd98364db5b 100644 --- a/tests/python/render_layer/test_move_into_layer_collection_j.py +++ b/tests/python/render_layer/test_move_into_layer_collection_j.py @@ -37,10 +37,5 @@ class UnitTesting(MoveLayerCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_a.py b/tests/python/render_layer/test_move_into_scene_collection_a.py index 4467b2ebe81..00294a9b978 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_a.py +++ b/tests/python/render_layer/test_move_into_scene_collection_a.py @@ -49,10 +49,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_b.py b/tests/python/render_layer/test_move_into_scene_collection_b.py index 258963121b0..3c92a0b8bd1 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_b.py +++ b/tests/python/render_layer/test_move_into_scene_collection_b.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_c.py b/tests/python/render_layer/test_move_into_scene_collection_c.py index 56b26c58956..03ef0df47b0 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_c.py +++ b/tests/python/render_layer/test_move_into_scene_collection_c.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_d.py b/tests/python/render_layer/test_move_into_scene_collection_d.py index 4086d892c60..24678a3b530 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_d.py +++ b/tests/python/render_layer/test_move_into_scene_collection_d.py @@ -33,10 +33,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_e.py b/tests/python/render_layer/test_move_into_scene_collection_e.py index 331a3cf8297..6f8115e42b3 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_e.py +++ b/tests/python/render_layer/test_move_into_scene_collection_e.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_f.py b/tests/python/render_layer/test_move_into_scene_collection_f.py index 8ef22d82e5e..dcc62e6b7bb 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_f.py +++ b/tests/python/render_layer/test_move_into_scene_collection_f.py @@ -47,10 +47,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_g.py b/tests/python/render_layer/test_move_into_scene_collection_g.py index a6c3b07d3bd..5a96f901523 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_g.py +++ b/tests/python/render_layer/test_move_into_scene_collection_g.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_h.py b/tests/python/render_layer/test_move_into_scene_collection_h.py index a50ebf73881..24dce2c7cc9 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_h.py +++ b/tests/python/render_layer/test_move_into_scene_collection_h.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_i.py b/tests/python/render_layer/test_move_into_scene_collection_i.py index 8a36d252132..445fb78a345 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_i.py +++ b/tests/python/render_layer/test_move_into_scene_collection_i.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_j.py b/tests/python/render_layer/test_move_into_scene_collection_j.py index 7f0037f90e4..bbf682a7082 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_j.py +++ b/tests/python/render_layer/test_move_into_scene_collection_j.py @@ -39,10 +39,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_k.py b/tests/python/render_layer/test_move_into_scene_collection_k.py index 819e898c22a..afc260d51ae 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_k.py +++ b/tests/python/render_layer/test_move_into_scene_collection_k.py @@ -32,10 +32,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_l.py b/tests/python/render_layer/test_move_into_scene_collection_l.py index 71b5760ac4e..b600db03a0c 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_l.py +++ b/tests/python/render_layer/test_move_into_scene_collection_l.py @@ -32,10 +32,5 @@ class UnitTesting(MoveSceneCollectionTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_a.py b/tests/python/render_layer/test_move_into_scene_collection_sync_a.py index c601e21424f..e49baaeb84a 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_a.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_a.py @@ -33,10 +33,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_b.py b/tests/python/render_layer/test_move_into_scene_collection_sync_b.py index 5a22eefbfb1..78d24dfea98 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_b.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_b.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_c.py b/tests/python/render_layer/test_move_into_scene_collection_sync_c.py index cd8ffd687b6..3b9a2cfdbb6 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_c.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_c.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_d.py b/tests/python/render_layer/test_move_into_scene_collection_sync_d.py index 848655cfe71..cf9d1b851e5 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_d.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_d.py @@ -33,10 +33,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_e.py b/tests/python/render_layer/test_move_into_scene_collection_sync_e.py index 9efc9c2d1a5..087920f0c89 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_e.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_e.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_f.py b/tests/python/render_layer/test_move_into_scene_collection_sync_f.py index 043b48131ac..554fb941c28 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_f.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_f.py @@ -47,10 +47,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_g.py b/tests/python/render_layer/test_move_into_scene_collection_sync_g.py index 4749605e4ed..09a544b0d27 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_g.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_g.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_h.py b/tests/python/render_layer/test_move_into_scene_collection_sync_h.py index 0b9b19594e0..a2338e70f08 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_h.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_h.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_i.py b/tests/python/render_layer/test_move_into_scene_collection_sync_i.py index 752b6507b12..59e0a06cd73 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_i.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_i.py @@ -48,10 +48,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_j.py b/tests/python/render_layer/test_move_into_scene_collection_sync_j.py index 5f3de6b095d..b1e2d3446a6 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_j.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_j.py @@ -39,10 +39,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_k.py b/tests/python/render_layer/test_move_into_scene_collection_sync_k.py index 3ed3ccb28ae..f5fbe9898e3 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_k.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_k.py @@ -32,10 +32,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_move_into_scene_collection_sync_l.py b/tests/python/render_layer/test_move_into_scene_collection_sync_l.py index a1e0605254f..d8133938fd7 100644 --- a/tests/python/render_layer/test_move_into_scene_collection_sync_l.py +++ b/tests/python/render_layer/test_move_into_scene_collection_sync_l.py @@ -32,10 +32,5 @@ class UnitTesting(MoveSceneCollectionSyncTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_add_cylinder.py b/tests/python/render_layer/test_object_add_cylinder.py index d8cd030dff1..d561f1c04fc 100644 --- a/tests/python/render_layer/test_object_add_cylinder.py +++ b/tests/python/render_layer/test_object_add_cylinder.py @@ -30,10 +30,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_add_empty.py b/tests/python/render_layer/test_object_add_empty.py index b7e1d2729b7..e4f3c94f8a5 100644 --- a/tests/python/render_layer/test_object_add_empty.py +++ b/tests/python/render_layer/test_object_add_empty.py @@ -30,10 +30,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_add_no_collection_cylinder.py b/tests/python/render_layer/test_object_add_no_collection_cylinder.py index 31752b1eb05..f0770cb15e5 100644 --- a/tests/python/render_layer/test_object_add_no_collection_cylinder.py +++ b/tests/python/render_layer/test_object_add_no_collection_cylinder.py @@ -28,10 +28,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_add_no_collection_empty.py b/tests/python/render_layer/test_object_add_no_collection_empty.py index 5eb87f6a3c5..cc5bfbe8562 100644 --- a/tests/python/render_layer/test_object_add_no_collection_empty.py +++ b/tests/python/render_layer/test_object_add_no_collection_empty.py @@ -27,10 +27,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_add_no_collection_torus.py b/tests/python/render_layer/test_object_add_no_collection_torus.py index 1e0ca3ee9ce..c87acfbc996 100644 --- a/tests/python/render_layer/test_object_add_no_collection_torus.py +++ b/tests/python/render_layer/test_object_add_no_collection_torus.py @@ -27,10 +27,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_add_torus.py b/tests/python/render_layer/test_object_add_torus.py index 9c4096ce2ec..a92c42bc926 100644 --- a/tests/python/render_layer/test_object_add_torus.py +++ b/tests/python/render_layer/test_object_add_torus.py @@ -30,10 +30,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_copy.py b/tests/python/render_layer/test_object_copy.py index 468fbbd7207..69e05d46140 100644 --- a/tests/python/render_layer/test_object_copy.py +++ b/tests/python/render_layer/test_object_copy.py @@ -89,10 +89,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_delete_a.py b/tests/python/render_layer/test_object_delete_a.py index 500ace0da89..60c3841a0ad 100644 --- a/tests/python/render_layer/test_object_delete_a.py +++ b/tests/python/render_layer/test_object_delete_a.py @@ -27,10 +27,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_delete_b.py b/tests/python/render_layer/test_object_delete_b.py index 890864568a9..7bb8279f2f7 100644 --- a/tests/python/render_layer/test_object_delete_b.py +++ b/tests/python/render_layer/test_object_delete_b.py @@ -27,10 +27,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_link_a.py b/tests/python/render_layer/test_object_link_a.py index 21018019d36..2106d4cd626 100644 --- a/tests/python/render_layer/test_object_link_a.py +++ b/tests/python/render_layer/test_object_link_a.py @@ -28,10 +28,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_link_b.py b/tests/python/render_layer/test_object_link_b.py index 67c293bd8cf..e0228594be7 100644 --- a/tests/python/render_layer/test_object_link_b.py +++ b/tests/python/render_layer/test_object_link_b.py @@ -29,10 +29,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_object_link_c.py b/tests/python/render_layer/test_object_link_c.py index 6f4c33800d0..ad69631dddc 100644 --- a/tests/python/render_layer/test_object_link_c.py +++ b/tests/python/render_layer/test_object_link_c.py @@ -31,10 +31,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_operator_context.py b/tests/python/render_layer/test_operator_context.py index b025a06847e..05a8957fa20 100644 --- a/tests/python/render_layer/test_operator_context.py +++ b/tests/python/render_layer/test_operator_context.py @@ -122,10 +122,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_scene_copy_a.py b/tests/python/render_layer/test_scene_copy_a.py index 146bc4d3aac..9fcf264feb5 100644 --- a/tests/python/render_layer/test_scene_copy_a.py +++ b/tests/python/render_layer/test_scene_copy_a.py @@ -33,10 +33,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_scene_copy_b.py b/tests/python/render_layer/test_scene_copy_b.py index 4a9cfa8c281..1184655223b 100644 --- a/tests/python/render_layer/test_scene_copy_b.py +++ b/tests/python/render_layer/test_scene_copy_b.py @@ -34,10 +34,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_scene_copy_c.py b/tests/python/render_layer/test_scene_copy_c.py index fdddc8b6a89..b446464b1c2 100644 --- a/tests/python/render_layer/test_scene_copy_c.py +++ b/tests/python/render_layer/test_scene_copy_c.py @@ -33,10 +33,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_scene_copy_d.py b/tests/python/render_layer/test_scene_copy_d.py index ea0c33ed678..54988f49036 100644 --- a/tests/python/render_layer/test_scene_copy_d.py +++ b/tests/python/render_layer/test_scene_copy_d.py @@ -33,10 +33,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_scene_copy_e.py b/tests/python/render_layer/test_scene_copy_e.py index 350729d14e0..8e1afb1b2ea 100644 --- a/tests/python/render_layer/test_scene_copy_e.py +++ b/tests/python/render_layer/test_scene_copy_e.py @@ -43,10 +43,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() diff --git a/tests/python/render_layer/test_scene_write_read.py b/tests/python/render_layer/test_scene_write_read.py index 2f061227d65..3338aff291a 100644 --- a/tests/python/render_layer/test_scene_write_read.py +++ b/tests/python/render_layer/test_scene_write_read.py @@ -140,10 +140,5 @@ class UnitTesting(RenderLayerTesting): # ############################################################ if __name__ == '__main__': - import sys - - extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] - sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) - - UnitTesting._extra_arguments = extra_arguments + UnitTesting._extra_arguments = setup_extra_arguments(__file__) unittest.main() |