Formula: temporarily set PYTHONPATH.

Needs a less hacky fix but at least this will stop failing tests.
This commit is contained in:
Mike McQuaid 2013-07-17 18:25:04 -07:00
parent 810005156e
commit e3a7260c1a

View File

@ -504,6 +504,8 @@ class Formula
def test def test
require 'test/unit/assertions' require 'test/unit/assertions'
extend(Test::Unit::Assertions) extend(Test::Unit::Assertions)
# TODO: move this into PythonInstalled.
ENV['PYTHONPATH'] = PythonInstalled.new.global_site_packages
ret = nil ret = nil
mktemp do mktemp do
@testpath = Pathname.pwd @testpath = Pathname.pwd