@@ -142,16 +142,14 @@ def test_install_import(self, tmp_path: pathlib.Path):
142142 venv_path = tmp_path / "venv"
143143 venv .create (venv_path , with_pip = True )
144144
145- basilisp_path = venv_path / "Scripts" / "basilisp"
146- if sys .platform == "win32" :
147- pip_path = venv_path / "Scripts" / "pip.exe"
148- python_path = venv_path / "Scripts" / "python.exe"
149- else :
150- pip_path = venv_path / "bin" / "pip"
151- python_path = venv_path / "bin" / "python"
145+ venv_bin = venv_path / ("Scripts" if sys .platform == "win32" else "bin" )
146+ pip_path = venv_bin / "pip"
147+ python_path = venv_bin / "python"
148+ basilisp_path = venv_bin / "basilisp"
152149
153- cmd = [pip_path , "install" , "." ]
154- result = subprocess .run (cmd , capture_output = True , text = True , cwd = os .getcwd ())
150+ result = subprocess .run (
151+ [pip_path , "install" , "." ], capture_output = True , text = True , cwd = os .getcwd ()
152+ )
155153
156154 lpy_file = tmp_path / "boottest.lpy"
157155 lpy_file .write_text ("(ns boottest) (defn abc [] (println (+ 155 4)))" )
@@ -162,8 +160,9 @@ def test_install_import(self, tmp_path: pathlib.Path):
162160 )
163161 assert "No module named 'boottest'" in result .stderr , result
164162
165- cmd = [basilisp_path , "bootstrap" ]
166- result = subprocess .run (cmd , capture_output = True , text = True , cwd = tmp_path )
163+ result = subprocess .run (
164+ [basilisp_path , "bootstrap" ], capture_output = True , text = True , cwd = tmp_path
165+ )
167166 assert (
168167 "Your Python installation has been bootstrapped!" in result .stdout
169168 ), result
0 commit comments