D | test_strings.py | 29 def test_c_buffer_value(self, memoryview=memoryview): argument 35 self.assertRaises(TypeError, setattr, buf, "value", memoryview("Hello, World")) 36 self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc")) 37 self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100)) 39 def test_c_buffer_raw(self, memoryview=memoryview): argument 42 buf.raw = memoryview("Hello, World") 44 self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc")) 45 self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100))
|