From 23cf725c20e6ea48f013335ebadc885e9b490062 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 3 Jun 2015 19:14:10 +0300 Subject: [PATCH] Skip SF 5xx errors --- tests/test_pkgmanifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pkgmanifest.py b/tests/test_pkgmanifest.py index 87e925d4..f8f8efc4 100644 --- a/tests/test_pkgmanifest.py +++ b/tests/test_pkgmanifest.py @@ -56,7 +56,7 @@ def test_package(package_data, sfpkglist): # check content type and that file exists try: r = requests.head(package_data['url'], allow_redirects=True) - if r.status_code == 504: + if 500 <= r.status_code <= 599: raise requests.exceptions.ConnectionError() except requests.exceptions.ConnectionError: return pytest.skip("SF is off-line")