projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df5dcb8
)
Fixing test for python3
author
Michael Komitee
<mkomitee@gmail.com>
Fri, 15 Feb 2013 02:33:01 +0000
(21:33 -0500)
committer
Michael Komitee
<mkomitee@gmail.com>
Fri, 15 Feb 2013 02:33:01 +0000
(21:33 -0500)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index
a9230b1
..
c497f59
100644
(file)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-178,10
+178,10
@@
class RequestsTestCase(unittest.TestCase):
url = httpbin('digest-auth', 'auth', 'user', 'pass')
r = requests.get(url, auth=auth, stream=True)
- self.assertNotEqual(
str(r.raw.read()), str('')
)
+ self.assertNotEqual(
r.raw.read(), b''
)
r = requests.get(url, auth=auth, stream=False)
- self.assertEqual(
str(r.raw.read()), str('')
)
+ self.assertEqual(
r.raw.read(), b''
)
def test_DIGESTAUTH_WRONG_HTTP_401_GET(self):