tests/run-tests.py
changeset 48865 7caa967bb7b6
parent 48864 a2f0af520ae5
child 48866 2ccd5e71bcd3
equal deleted inserted replaced
48864:a2f0af520ae5 48865:7caa967bb7b6
  3560                 pass
  3560                 pass
  3561 
  3561 
  3562     def _usecorrectpython(self):
  3562     def _usecorrectpython(self):
  3563         """Configure the environment to use the appropriate Python in tests."""
  3563         """Configure the environment to use the appropriate Python in tests."""
  3564         # Tests must use the same interpreter as us or bad things will happen.
  3564         # Tests must use the same interpreter as us or bad things will happen.
  3565         if WINDOWS and PYTHON3:
  3565         if WINDOWS:
  3566             pyexe_names = [b'python', b'python3', b'python.exe']
  3566             pyexe_names = [b'python', b'python3', b'python.exe']
  3567         elif WINDOWS:
       
  3568             pyexe_names = [b'python', b'python.exe']
       
  3569         else:
  3567         else:
  3570             pyexe_names = [b'python', b'python3']
  3568             pyexe_names = [b'python', b'python3']
  3571 
  3569 
  3572         # os.symlink() is a thing with py3 on Windows, but it requires
  3570         # os.symlink() is a thing with py3 on Windows, but it requires
  3573         # Administrator rights.
  3571         # Administrator rights.