diff --git a/test/runner/lib/sanity/import.py b/test/runner/lib/sanity/import.py index 9fbc127f0c2..60daeff79ec 100644 --- a/test/runner/lib/sanity/import.py +++ b/test/runner/lib/sanity/import.py @@ -67,7 +67,9 @@ class ImportTest(SanityMultipleVersion): remove_tree(virtual_environment_path) - cmd = ['virtualenv', virtual_environment_path, '--python', find_python(python_version), '--no-setuptools', '--no-wheel'] + python = find_python(python_version) + + cmd = [python, '-m', 'virtualenv', virtual_environment_path, '--python', python, '--no-setuptools', '--no-wheel'] if not args.coverage: cmd.append('--no-pip')