aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-07-17 18:25:04 -0700
committerMike McQuaid2013-07-18 09:56:55 -0700
commite3a7260c1a18a0c67322bdaabe381e3132f26224 (patch)
treea8a935bccf200ffb4dce3180488cf01992831655 /Library
parent810005156e865d4ed289ba6259252785d79d0a1c (diff)
downloadbrew-e3a7260c1a18a0c67322bdaabe381e3132f26224.tar.bz2
Formula: temporarily set PYTHONPATH.
Needs a less hacky fix but at least this will stop failing tests.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index ec1659c94..09191fed1 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