Skip to content

Commit

Permalink
Merge pull request #271 from a16bitsysop/tests2
Browse files Browse the repository at this point in the history
remove main node.js mirror in tests if musl
  • Loading branch information
ekalinin authored Aug 29, 2020
2 parents 797c354 + f4a57d0 commit c9ee277
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit c9ee277

Please # to comment.