File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
tests/integration/local_toolchains Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 1+ import os .path
12import shutil
23import subprocess
34import sys
4- import unittest
55import tempfile
6- import os .path
6+ import unittest
7+
78
89class LocalToolchainTest (unittest .TestCase ):
910 maxDiff = None
@@ -20,17 +21,22 @@ def test_python_from_path_used(self):
2021 # The shim is e.g. /home/user/.pyenv/shims/python3, which then
2122 # runs e.g. /usr/bin/python3
2223 with tempfile .NamedTemporaryFile (suffix = "_info.py" , mode = "w+" ) as f :
23- f .write ("""
24+ f .write (
25+ """
2426import sys
2527print(sys.executable)
2628print(sys._base_executable)
2729"""
28- )
30+ )
2931 f .flush ()
30- output_lines = subprocess .check_output (
31- [shell_path , f .name ],
32- text = True ,
33- ).strip ().splitlines ()
32+ output_lines = (
33+ subprocess .check_output (
34+ [shell_path , f .name ],
35+ text = True ,
36+ )
37+ .strip ()
38+ .splitlines ()
39+ )
3440 shell_exe , shell_base_exe = output_lines
3541
3642 # Call realpath() to help normalize away differences from symlinks.
You can’t perform that action at this time.
0 commit comments