Skip to content

Commit

Permalink
gitfs: fix python3.9 references.
Browse files Browse the repository at this point in the history
Fixes a CI failure seen at Homebrew#107517.
  • Loading branch information
carlocab committed Aug 12, 2022
1 parent b3023d1 commit 2e167d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/gitfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ def caveats
end

test do
xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"
python = "python3.9"
ENV.prepend_create_path "PYTHONPATH", libexec/Language::Python.site_packages(python)

(testpath/"test.py").write <<~EOS
import gitfs
import pygit2
pygit2.init_repository('testing/.git', True)
EOS

system Formula["python@3.9"].opt_bin/"python3", "test.py"
system python, "test.py"
assert_predicate testpath/"testing/.git/config", :exist?
cd "testing" do
system "git", "remote", "add", "homebrew", "https://github.com/Homebrew/homebrew-core.git"
Expand Down

0 comments on commit 2e167d5

Please sign in to comment.