Skip to content

Commit

Permalink
Skip tests with redirects on Requests 0.13.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Aug 7, 2012
1 parent 07de32c commit f672445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tests.py
Expand Up @@ -25,6 +25,7 @@
import argparse
import tempfile
import unittest
from requests import __version__ as requests_version
try:
from urllib.request import urlopen
except ImportError:
Expand Down Expand Up @@ -765,6 +766,8 @@ def test_basic_auth(self):
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',
Expand Down Expand Up @@ -822,6 +825,8 @@ def test_3xx_check_status_exits_3_and_stderr_when_stdout_redirected(self):
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',
Expand Down

0 comments on commit f672445

Please sign in to comment.