Skip to content

Commit 44555ce

Browse files
iMichkaBrewTestBot
authored andcommitted
zurl: fix python3 references
See Homebrew#108008 Closes Homebrew#109633. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
1 parent caee765 commit 44555ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Formula/zurl.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ def install
4141
end
4242

4343
test do
44+
python3 = "python3.10"
45+
4446
conffile = testpath/"zurl.conf"
4547
ipcfile = testpath/"zurl-req"
4648
runfile = testpath/"test.py"
4749

48-
venv = virtualenv_create(testpath/"vendor", Formula["python@3.10"].opt_bin/"python3")
50+
venv = virtualenv_create(testpath/"vendor", Formula["python@3.10"].opt_bin/python3)
4951
venv.pip_install resource("pyzmq")
5052

5153
conffile.write(<<~EOS,
@@ -103,7 +105,7 @@ def server_worker(c):
103105
end
104106

105107
begin
106-
system testpath/"vendor/bin/python3", runfile
108+
system testpath/"vendor/bin/#{python3}", runfile
107109
ensure
108110
Process.kill("TERM", pid)
109111
Process.wait(pid)

0 commit comments

Comments
 (0)