Skip to content

Commit ef1e633

Browse files
Use assertIs to check pointer types in tests
1 parent b070ad5 commit ef1e633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_ctypes/test_win32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class RECT(Structure):
144144
self.assertEqual(ret.top, top.value)
145145
self.assertEqual(ret.bottom, bottom.value)
146146

147-
self.assertEqual(id(PointInRect.argtypes[0]), id(ReturnRect.argtypes[2]))
148-
self.assertEqual(id(PointInRect.argtypes[0]), id(ReturnRect.argtypes[5]))
147+
self.assertIs(PointInRect.argtypes[0], ReturnRect.argtypes[2])
148+
self.assertIs(PointInRect.argtypes[0], ReturnRect.argtypes[5])
149149

150150

151151
if __name__ == '__main__':

0 commit comments

Comments
 (0)