Skip to content

Commit bf6134f

Browse files
committed
test: migrate tests to Python3 by default
This changes the python interpreter used to invoke the tests to Python3. Python2 has been EOL'ed by the Python Software Foundation. This migration enables the Swift test suite to run with Python 3 instead.
1 parent 2de808e commit bf6134f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ _Block_release(void) { }\n")
354354
endif()
355355

356356
execute_process(COMMAND
357-
$<TARGET_FILE:Python2::Interpreter> "-c" "import psutil"
357+
$<TARGET_FILE:Python3::Interpreter> "-c" "import psutil"
358358
RESULT_VARIABLE python_psutil_status
359359
TIMEOUT 1 # second
360360
ERROR_QUIET)
@@ -414,7 +414,7 @@ _Block_release(void) { }\n")
414414
${command_upload_swift_reflection_test}
415415
${command_clean_test_results_dir}
416416
COMMAND
417-
$<TARGET_FILE:Python2::Interpreter> "${LIT}"
417+
$<TARGET_FILE:Python3::Interpreter> "${LIT}"
418418
${LIT_ARGS}
419419
"--param" "swift_test_subset=${test_subset}"
420420
"--param" "swift_test_mode=${test_mode}"
@@ -433,7 +433,7 @@ _Block_release(void) { }\n")
433433
${command_upload_swift_reflection_test}
434434
${command_clean_test_results_dir}
435435
COMMAND
436-
$<TARGET_FILE:Python2::Interpreter> "${LIT}"
436+
$<TARGET_FILE:Python3::Interpreter> "${LIT}"
437437
${LIT_ARGS}
438438
"--param" "swift_test_subset=${test_subset}"
439439
"--param" "swift_test_mode=${test_mode}"

0 commit comments

Comments
 (0)