Skip to content

Commit 3a9510a

Browse files
Make sure to filter warnings to errors (#868)
1 parent ac777e0 commit 3a9510a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jenkinsapi_tests/unittests/test_build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ def fake_get_data(cls, tree=None, params=None):
277277

278278
with pytest.raises(Exception) as excinfo:
279279
with warnings.catch_warnings():
280+
warnings.simplefilter("error")
280281
build.get_env_vars()
281282
assert "" == str(excinfo.value)
282283

0 commit comments

Comments
 (0)