summaryrefslogtreecommitdiff
path: root/tests/responses/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/responses/tests.py')
-rw-r--r--tests/responses/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/responses/tests.py b/tests/responses/tests.py
index 8adf092ca0..934e4dfe60 100644
--- a/tests/responses/tests.py
+++ b/tests/responses/tests.py
@@ -22,14 +22,14 @@ class HttpResponseBaseTests(SimpleTestCase):
r = HttpResponseBase()
self.assertIs(r.writable(), False)
- with self.assertRaisesMessage(IOError, 'This HttpResponseBase instance is not writable'):
+ with self.assertRaisesMessage(OSError, 'This HttpResponseBase instance is not writable'):
r.write('asdf')
- with self.assertRaisesMessage(IOError, 'This HttpResponseBase instance is not writable'):
+ with self.assertRaisesMessage(OSError, 'This HttpResponseBase instance is not writable'):
r.writelines(['asdf\n', 'qwer\n'])
def test_tell(self):
r = HttpResponseBase()
- with self.assertRaisesMessage(IOError, 'This HttpResponseBase instance cannot tell its position'):
+ with self.assertRaisesMessage(OSError, 'This HttpResponseBase instance cannot tell its position'):
r.tell()
def test_setdefault(self):