Skip to content

Commit 7ea0a48

Browse files
committed
Fix linter errors after #363
1 parent cf0c993 commit 7ea0a48

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

nodeenv.py

+1
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ def _get_last_node_version(lts=False):
10501050
Return last node.js version matching the filter
10511051
"""
10521052
print({"x86": is_x86_64_musl(), "risc": is_riscv64(), "lts": lts})
1053+
10531054
def version_filter(v):
10541055
if lts and not v['lts']:
10551056
return False

tests/nodeenv_test.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ def cap_logging_info():
7070

7171
@pytest.fixture
7272
def mock_host_platform():
73-
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False) as x64_mck:
74-
with mock.patch.object(nodeenv, 'is_riscv64', return_value=False) as risc_mck:
73+
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False):
74+
with mock.patch.object(nodeenv, 'is_riscv64', return_value=False):
7575
yield
7676

7777

7878
@pytest.fixture
7979
def mock_riscv64_platform():
80-
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False) as x64_mck:
81-
with mock.patch.object(nodeenv, 'is_riscv64', return_value=True) as risc_mck:
80+
with mock.patch.object(nodeenv, 'is_x86_64_musl', return_value=False):
81+
with mock.patch.object(nodeenv, 'is_riscv64', return_value=True):
8282
yield
8383

8484

0 commit comments

Comments
 (0)