@@ -136,7 +136,7 @@ def test_unknown_option():
136
136
config = Config .read ()
137
137
expected = "Scriv configuration has no 'foo' option"
138
138
with pytest .raises (AttributeError , match = expected ):
139
- config .foo # pylint: disable=pointless-statement
139
+ _ = config .foo
140
140
141
141
142
142
def test_custom_template (changelog_d ):
@@ -180,7 +180,7 @@ def test_no_such_template():
180
180
msg = r"No such file: changelog\.d[/\\]foo\.j2"
181
181
with pytest .raises (ScrivException , match = msg ):
182
182
config = Config (new_fragment_template = "file: foo.j2" )
183
- config .new_fragment_template # pylint: disable=pointless-statement
183
+ _ = config .new_fragment_template
184
184
185
185
186
186
def test_override_default_name (changelog_d ):
@@ -214,7 +214,7 @@ def test_literal_no_file():
214
214
FileNotFoundError , match = r"No such file or directory: 'sub/foob.py'"
215
215
):
216
216
config = Config (version = "literal:sub/foob.py: __version__" )
217
- config .version # pylint: disable=pointless-statement
217
+ _ = config .version
218
218
219
219
220
220
def test_literal_no_literal (temp_dir ):
@@ -228,7 +228,7 @@ def test_literal_no_literal(temp_dir):
228
228
match = r"Couldn't find literal: 'literal:sub/foob.py: version'" ,
229
229
):
230
230
config = Config (version = "literal:sub/foob.py: version" )
231
- config .version # pylint: disable=pointless-statement
231
+ _ = config .version
232
232
233
233
234
234
@pytest .mark .parametrize ("chars" , ["" , "#" , "#=-" , "# " , " " ])
0 commit comments