diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:44:27 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:44:27 (GMT) |
commit | 101d9e7250c039aeabea1582459d40b52cc81024 (patch) | |
tree | e0a6990c763c2435fae0a08a4114ac17569aa261 /Lib/test/test_memoryview.py | |
parent | 5ca129b8f016668bf914592e58082c452a7ad9b4 (diff) | |
parent | 7ef00ff91a0a90a2b11df40d110365e6a7909a94 (diff) | |
download | cpython-101d9e7250c039aeabea1582459d40b52cc81024.zip cpython-101d9e7250c039aeabea1582459d40b52cc81024.tar.gz cpython-101d9e7250c039aeabea1582459d40b52cc81024.tar.bz2 |
Issue 19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_memoryview.py')
-rw-r--r-- | Lib/test/test_memoryview.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_memoryview.py b/Lib/test/test_memoryview.py index ffd4f58..e7df8a7 100644 --- a/Lib/test/test_memoryview.py +++ b/Lib/test/test_memoryview.py @@ -57,7 +57,7 @@ class AbstractMemoryTests: def test_setitem_readonly(self): if not self.ro_type: - return + self.skipTest("no read-only type to test") b = self.ro_type(self._source) oldrefcount = sys.getrefcount(b) m = self._view(b) @@ -71,7 +71,7 @@ class AbstractMemoryTests: def test_setitem_writable(self): if not self.rw_type: - return + self.skipTest("no writable type to test") tp = self.rw_type b = self.rw_type(self._source) oldrefcount = sys.getrefcount(b) @@ -189,13 +189,13 @@ class AbstractMemoryTests: def test_attributes_readonly(self): if not self.ro_type: - return + self.skipTest("no read-only type to test") m = self.check_attributes_with_type(self.ro_type) self.assertEqual(m.readonly, True) def test_attributes_writable(self): if not self.rw_type: - return + self.skipTest("no writable type to test") m = self.check_attributes_with_type(self.rw_type) self.assertEqual(m.readonly, False) @@ -301,7 +301,7 @@ class AbstractMemoryTests: # buffer as writable causing a segfault if using mmap tp = self.ro_type if tp is None: - return + self.skipTest("no read-only type to test") b = tp(self._source) m = self._view(b) i = io.BytesIO(b'ZZZZ') @@ -379,12 +379,12 @@ class BaseArrayMemoryTests(AbstractMemoryTests): itemsize = array.array('i').itemsize format = 'i' + @unittest.skip('XXX test should be adapted for non-byte buffers') def test_getbuffer(self): - # XXX Test should be adapted for non-byte buffers pass + @unittest.skip('XXX NotImplementedError: tolist() only supports byte views') def test_tolist(self): - # XXX NotImplementedError: tolist() only supports byte views pass |