From f6724452cf870adb47b3908cf81ab52a5ee10906 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Tue, 7 Aug 2012 15:08:28 +0200 Subject: [PATCH] Skip tests with redirects on Requests 0.13.6. --- tests/tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tests.py b/tests/tests.py index 09682b9e..9e2b2ee4 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -25,6 +25,7 @@ import json import argparse import tempfile import unittest +from requests import __version__ as requests_version try: from urllib.request import urlopen except ImportError: @@ -765,6 +766,8 @@ class AuthTest(BaseTestCase): self.assertIn('"authenticated": true', r) self.assertIn('"user": "user"', r) + @skipIf(requests_version == '0.13.6', + 'Redirects with prefetch=False are broken in Requests 0.13.6') def test_digest_auth(self): r = http( '--auth-type=digest', @@ -822,6 +825,8 @@ class ExitStatusTest(BaseTestCase): self.assertEqual(r.exit_status, EXIT.ERROR_HTTP_3XX) self.assertIn('301 moved permanently', r.stderr.lower()) + @skipIf(requests_version == '0.13.6', + 'Redirects with prefetch=False are broken in Requests 0.13.6') def test_3xx_check_status_redirects_allowed_exits_0(self): r = http( '--check-status',