Skip to content

Commit c7496d4

Browse files
committed
Add noqa comments to test scenarios
The new unused global check flags these test scenarios, but the `global` declaration is actually what's being tested here, so let it stand.
1 parent c2de8f8 commit c7496d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nose2/tests/functional/support/scenario/pretty_asserts/conf_on/test_conf_on.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
def test_w_global():
5-
global myglob
5+
global myglob # noqa: F824
66
assert myglob == 2

nose2/tests/functional/support/scenario/pretty_asserts/simple_global/test_simple_global.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
def test_w_global():
5-
global myglob
5+
global myglob # noqa: F824
66
assert myglob == 2

0 commit comments

Comments
 (0)