Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/nodeenv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pipes
import subprocess
import sys
import sysconfig

import mock
import pytest
Expand Down Expand Up @@ -117,6 +118,11 @@ def test_mirror_option():
'https://npm.some-mirror.com/download/release/index.json'),
('',
'https://nodejs.org/download/release/index.json')]
sys_type = sysconfig.get_config_var('HOST_GNU_TYPE')
musl_type = ['x86_64-pc-linux-musl', 'x86_64-unknown-linux-musl']
# Check if running on musl system and delete last mirror if it is
if sys_type in musl_type:
urls.pop()
with open(os.path.join(HERE, 'nodejs_index.json'), 'rb') as f:
def rewind(_):
f.seek(0)
Expand Down