summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_memoryio.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 12:14:25 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-07 12:14:25 (GMT)
commit1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07 (patch)
tree42dc10540da9b1aff1d4e6cef51e4c11ce4f5b47 /Lib/test/test_memoryio.py
parent2a4ab816332a67150fcc8ece255fb1ee8e66af83 (diff)
downloadcpython-1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07.zip
cpython-1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07.tar.gz
cpython-1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07.tar.bz2
Fix some py3k warnings in the standard library.
Diffstat (limited to 'Lib/test/test_memoryio.py')
-rw-r--r--Lib/test/test_memoryio.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py
index 13fa826..2b4c76e 100644
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -133,9 +133,7 @@ class MemoryTestMixin:
pos = memio.tell()
self.assertEqual(memio.truncate(None), pos)
self.assertEqual(memio.tell(), pos)
- # Silence a py3k warning
- with support.check_warnings():
- self.assertRaises(TypeError, memio.truncate, '0')
+ self.assertRaises(TypeError, memio.truncate, '0')
memio.close()
self.assertRaises(ValueError, memio.truncate, 0)
@@ -172,9 +170,7 @@ class MemoryTestMixin:
self.assertEqual(type(memio.read()), type(buf))
memio.seek(0)
self.assertEqual(memio.read(None), buf)
- # Silence a py3k warning
- with support.check_warnings():
- self.assertRaises(TypeError, memio.read, '')
+ self.assertRaises(TypeError, memio.read, '')
memio.close()
self.assertRaises(ValueError, memio.read)