Skip to content

Commit 3ce45c3

Browse files
committed
run precommit
1 parent 1178c63 commit 3ce45c3

File tree

1 file changed

+14
-8
lines changed
  • tests/integration/local_toolchains

1 file changed

+14
-8
lines changed

tests/integration/local_toolchains/test.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import os.path
12
import shutil
23
import subprocess
34
import sys
4-
import unittest
55
import tempfile
6-
import os.path
6+
import unittest
7+
78

89
class 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+
"""
2426
import sys
2527
print(sys.executable)
2628
print(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.

0 commit comments

Comments
 (0)