python: Write py3 bin to correct args location
[nivanova/samba-autobuild/.git] / source4 / selftest / tests.py
index 660a75fb927f27eccd0461215af9e5e921367762..0f32c6deed15816a479cfdfe0282453c075e5249 100755 (executable)
@@ -570,7 +570,7 @@ def planoldpythontestsuite(env, module, name=None, extra_path=[], environ={}, ex
         name = module
     plantestsuite_loadlist(name, env, args)
     if py3_compatible and extra_python is not None:
-        args[0] = subunitrun3
+        args[args.index(subunitrun)] = subunitrun3
         plantestsuite_loadlist(name, env, args)