Skip to content

Commit

Permalink
pylint: delint against pylint 3.2.0
Browse files Browse the repository at this point in the history
Fixes errors found by recent Pylint's 3.2.0:
```
python -m pylint -v --rcfile=pyproject.toml .
Using config file pyproject.toml
************* Module tests.unit.test_run.test_env
tests/unit/test_run/test_env.py:542:12: E0601: Using variable 'vsp_wheel' before assignment (used-before-assignment)

----------------------------------------------------------------------
Your code has been rated at 9.99/10
Checked 64 files, skipped 48 files

Error: Process completed with exit code 2.
```

Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed May 15, 2024
1 parent f79db65 commit 35d3614
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/unit/test_run/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ def test_env_console_script(
into venv then console scripts of the package from those locations
will be ignored.
"""
# wheel that will be installed into venv on command's run
vsp_wheel = None

for ps, data in console_scripts_data.items():
if data["install"]:
if data["external_install"]:
Expand All @@ -525,6 +528,9 @@ def test_env_console_script(
# command's run
vsp_wheel = wheel_no_csript("bar")

# should be guaranteed by tests configuration
assert vsp_wheel is not None

expected_passes = [
console_scripts_data[ps]
for ps in console_scripts_data
Expand Down

0 comments on commit 35d3614

Please sign in to comment.