Skip to content

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate authored Nov 12, 2024
1 parent 21d90bc commit cb74d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cb74d45

Please sign in to comment.