Skip to content

Remove unused global host statements in test_module_interceptor#80

Merged
cdent merged 1 commit into
cdent:masterfrom
jlejeune:dev/jlejeune/Fix-pep8
Apr 4, 2026
Merged

Remove unused global host statements in test_module_interceptor#80
cdent merged 1 commit into
cdent:masterfrom
jlejeune:dev/jlejeune/Fix-pep8

Conversation

@jlejeune
Copy link
Copy Markdown
Contributor

@jlejeune jlejeune commented Apr 2, 2026

The host variable is set on the module object in setup_module() and only read (never assigned) in test functions, so global declarations are unnecessary. Add an explicit host = None at module level to satisfy flake8 F821 (undefined name) static analysis, since host is assigned dynamically at runtime via module.host. Fixes F824 violations introduced by pyflakes 3.2+.

The `host` variable is set on the module object in `setup_module()` and
only read (never assigned) in test functions, so `global` declarations
are unnecessary. Add an explicit `host = None` at module level to
satisfy flake8 F821 (undefined name) static analysis, since `host` is
assigned dynamically at runtime via `module.host`.
Fixes F824 violations introduced by pyflakes 3.2+.

Signed-off-by: Julien Le Jeune <julien.le-jeune@ovhcloud.com>
@cdent
Copy link
Copy Markdown
Owner

cdent commented Apr 2, 2026

Thanks, will deal with this very soon.

@cdent cdent merged commit 5b70db5 into cdent:master Apr 4, 2026
9 checks passed
@jlejeune jlejeune deleted the dev/jlejeune/Fix-pep8 branch April 17, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants