From 53998f051d84ad9587839a10a244d17c160d4e1a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 31 Aug 2024 17:13:24 +0200 Subject: [PATCH] =?UTF-8?q?curl=20tests:=20more=20debug=20UX=20tweaks?= =?UTF-8?q?=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/curl_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/curl_tests.py b/lib/curl_tests.py index 1e835ac..8f7c4e5 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -189,8 +189,8 @@ def test( ) assets = [] - # Auto-check assets - though skip this if we ended up with a 502 to prevent displaying warnings etc. - if auto_test_assets and not str(code).startswith("5"): + # Auto-check assets - though skip this if we have an unexpected return code for the main page, because there's very likely no asset to find + if auto_test_assets and code == expect_return_code: assets_to_check = [] stylesheets = html.find_all("link", rel="stylesheet", href=True) stylesheets = [