Skip to content

Commit

Permalink
Fix linter errors after #363
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Aug 25, 2024
1 parent cf0c993 commit 7ea0a48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ def _get_last_node_version(lts=False):
Return last node.js version matching the filter
"""
print({"x86": is_x86_64_musl(), "risc": is_riscv64(), "lts": lts})

def version_filter(v):
if lts and not v['lts']:
return False
Expand Down
8 changes: 4 additions & 4 deletions tests/nodeenv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ def cap_logging_info():

@pytest.fixture
def mock_host_platform():
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False) as x64_mck:
with mock.patch.object(nodeenv, 'is_riscv64', return_value=False) as risc_mck:
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False):
with mock.patch.object(nodeenv, 'is_riscv64', return_value=False):
yield


@pytest.fixture
def mock_riscv64_platform():
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False) as x64_mck:
with mock.patch.object(nodeenv, 'is_riscv64', return_value=True) as risc_mck:
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False):
with mock.patch.object(nodeenv, 'is_riscv64', return_value=True):
yield


Expand Down

0 comments on commit 7ea0a48

Please sign in to comment.