Cleanup: move copy-paste code into function

This commit is contained in:
Campbell Barton
2017-06-19 16:12:11 +10:00
parent 9649c6bef5
commit 2ecb9856bc
112 changed files with 124 additions and 666 deletions

View File

@@ -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()