From cb74d45486316a454e8f12e3617d53ab5d20e2e4 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 12 Nov 2024 01:41:50 -0800 Subject: [PATCH] Update tests.py --- tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index 9412b50..ae669d2 100755 --- a/tests.py +++ b/tests.py @@ -254,7 +254,7 @@ def test_env_provider(self): def test_pip_provider(self): # pipprovider = PipProvider() pipprovider = PipProvider(pip_venv=os.environ.get('VIRTUAL_ENV', None)) - print('PIP BINPROVIDER', provider.INSTALLER_BIN_ABSPATH, 'PATH=', provider.PATH) + print('PIP BINPROVIDER', pipprovider.INSTALLER_BIN_ABSPATH, 'PATH=', pipprovider.PATH) binary = Binary(name='yt-dlp', binproviders=[pipprovider]) self.install_with_binprovider(pipprovider, binary) @@ -288,7 +288,7 @@ def test_brew_provider(self): is_on_windows = sys.platform.lower().startswith('win') or os.name == 'nt' is_on_macos = 'darwin' in sys.platform.lower() is_on_linux = 'linux' in sys.platform.lower() - has_brew = shutil.which('brew') is not None + has_brew = shutil.which('brew') or os.path.isfile('/home/linuxbrew/.linuxbrew/bin/brew') # has_apt = shutil.which('dpkg') is not None provider = BrewProvider()