From d09c1601ca0f77a6be84a750f12155470f9889f8 Mon Sep 17 00:00:00 2001 From: CJ Steiner Date: Fri, 20 Dec 2024 06:25:01 -0600 Subject: [PATCH] test_build: fix failing tests --- jenkinsapi_tests/unittests/test_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsapi_tests/unittests/test_build.py b/jenkinsapi_tests/unittests/test_build.py index 97db35ec..37fae50e 100644 --- a/jenkinsapi_tests/unittests/test_build.py +++ b/jenkinsapi_tests/unittests/test_build.py @@ -259,7 +259,7 @@ def fake_get_data(cls, tree=None, params=None): monkeypatch.setattr(Build, "get_data", fake_get_data) with pytest.raises(requests.HTTPError) as excinfo: - with pytest.warns(None) as record: + with pytest.warns(UserWarning) as record: build.get_env_vars() assert "404" == str(excinfo.value) assert len(record) == 1