We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd529c commit 2fc600bCopy full SHA for 2fc600b
Lib/test/test_ctypes/test_pointers.py
@@ -296,7 +296,7 @@ def test_pointer_set_type_twice(self):
296
297
def test_pointer_set_wrong_type(self):
298
int_ptr = POINTER(c_int)
299
- float_ptr = POINTER(float_ptr)
+ float_ptr = POINTER(c_float)
300
try:
301
class C(c_int):
302
pass
@@ -305,7 +305,7 @@ class C(c_int):
305
t2 = POINTER(c_float)
306
t1.set_type(c_float)
307
self.assertEqual(t1(c_float(1.5))[0], 1.5)
308
- self.assertIs(c_int._type_, c_float)
+ self.assertIs(t1._type_, c_float)
309
self.assertIs(c_int.__pointer_type__, t1)
310
self.assertIs(c_float.__pointer_type__, float_ptr)
311
0 commit comments