mesos: simplify test
Setting up the .pth file is done automatically for tests now. Closes Homebrew/homebrew#39402.
This commit is contained in:
parent
aaf8e043d6
commit
d41fe70dae
1 changed files with 1 additions and 6 deletions
|
@ -68,7 +68,7 @@ class Mesos < Formula
|
|||
# https://github.com/Homebrew/homebrew/pull/37087
|
||||
native_patch = <<-EOS.undent
|
||||
import os
|
||||
os.environ["CC"] = "#{ENV.cxx}"
|
||||
os.environ["CC"] = os.environ["CXX"]
|
||||
os.environ["LDFLAGS"] = "@LIBS@"
|
||||
\\0
|
||||
EOS
|
||||
|
@ -140,11 +140,6 @@ class Mesos < Formula
|
|||
Process.kill("TERM", master)
|
||||
Process.kill("TERM", slave)
|
||||
assert File.exist?("#{testpath}/executed")
|
||||
|
||||
user_site = Language::Python.user_site_packages("python")
|
||||
mkdir_p user_site
|
||||
pth_contents = "import site; site.addsitedir('#{Language::Python.homebrew_site_packages}')\n"
|
||||
(user_site/"homebrew.pth").write pth_contents
|
||||
system "python", "-c", "import mesos.native"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue