Skip to content

Commit bda7921

Browse files
Test corrected
1 parent 8617d76 commit bda7921

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_ctypes/test_pointers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ class C(Structure):
475475

476476
class TestPointerStringProto(unittest.TestCase):
477477
def test_pointer_string_proto_argtypes_error(self):
478-
479-
BadType = ctypes.POINTER("BugTrigger")
478+
with self.assertWarns(DeprecationWarning):
479+
BadType = ctypes.POINTER("BugTrigger")
480480

481481
if os.name == "nt":
482482
libc = ctypes.WinDLL("kernel32.dll")

0 commit comments

Comments
 (0)