From e3a7260c1a18a0c67322bdaabe381e3132f26224 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 17 Jul 2013 18:25:04 -0700 Subject: [PATCH] Formula: temporarily set PYTHONPATH. Needs a less hacky fix but at least this will stop failing tests. --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index ec1659c945..09191fed15 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -504,6 +504,8 @@ class Formula def test require 'test/unit/assertions' extend(Test::Unit::Assertions) + # TODO: move this into PythonInstalled. + ENV['PYTHONPATH'] = PythonInstalled.new.global_site_packages ret = nil mktemp do @testpath = Pathname.pwd