Skip to content
Myr

New tests fail on python 3.x because read() returns bytes and the test checks for strings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michael Komitee · committed by Michael Komitee · parent 69ba643 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:test_requests.py+2 added-2 removed
176 unmodified lines
177 auth = HTTPDigestAuth('user', 'pass')178 url = httpbin('digest-auth', 'auth', 'user', 'pass')179180 r = requests.get(url, auth=auth, stream=True)181 self.assertNotEqual(r.raw.read(), '')181 self.assertNotEqual(str(r.raw.read()), str(''))182183 r = requests.get(url, auth=auth, stream=False)184 self.assertEqual(r.raw.read(), '')184 self.assertEqual(str(r.raw.read()), str(''))185186187 def test_DIGESTAUTH_WRONG_HTTP_401_GET(self):188
182 unmodified lines