summaryrefslogtreecommitdiff
path: root/lib/python2.7/ctypes/test/test_delattr.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/ctypes/test/test_delattr.py')
-rw-r--r--lib/python2.7/ctypes/test/test_delattr.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/python2.7/ctypes/test/test_delattr.py b/lib/python2.7/ctypes/test/test_delattr.py
deleted file mode 100644
index 0f4d586..0000000
--- a/lib/python2.7/ctypes/test/test_delattr.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import unittest
-from ctypes import *
-
-class X(Structure):
- _fields_ = [("foo", c_int)]
-
-class TestCase(unittest.TestCase):
- def test_simple(self):
- self.assertRaises(TypeError,
- delattr, c_int(42), "value")
-
- def test_chararray(self):
- self.assertRaises(TypeError,
- delattr, (c_char * 5)(), "value")
-
- def test_struct(self):
- self.assertRaises(TypeError,
- delattr, X(), "foo")
-
-if __name__ == "__main__":
- unittest.main()