Skip to content

Commit d333803

Browse files
committed
Added flake8 exception
1 parent fd03e20 commit d333803

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_methods_and_attributes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_properties():
9999
assert instance.def_property == 3
100100

101101
with pytest.raises(AttributeError):
102-
dummy = instance.def_property_writeonly
102+
dummy = instance.def_property_writeonly # noqa: F841 unused var
103103
instance.def_property_writeonly = 4
104104
assert instance.def_property_readonly == 4
105105

@@ -114,7 +114,7 @@ def test_static_properties():
114114
assert m.TestProperties.def_readwrite_static == 2
115115

116116
with pytest.raises(AttributeError) as excinfo:
117-
dummy = m.TestProperties.def_writeonly_static
117+
dummy = m.TestProperties.def_writeonly_static # noqa: F841 unused var
118118
assert "unreadable attribute" in str(excinfo)
119119

120120
m.TestProperties.def_writeonly_static = 3
@@ -147,7 +147,7 @@ def test_static_properties():
147147
assert instance.def_readwrite_static == 2
148148

149149
with pytest.raises(AttributeError) as excinfo:
150-
dummy = instance.def_property_writeonly_static
150+
dummy = instance.def_property_writeonly_static # noqa: F841 unused var
151151
assert "unreadable attribute" in str(excinfo)
152152

153153
instance.def_property_writeonly_static = 4

0 commit comments

Comments
 (0)