Skip to content

Commit 2fc600b

Browse files
Fix typos in test_pointer_set_wrong_type test
1 parent dfd529c commit 2fc600b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_ctypes/test_pointers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_pointer_set_type_twice(self):
296296

297297
def test_pointer_set_wrong_type(self):
298298
int_ptr = POINTER(c_int)
299-
float_ptr = POINTER(float_ptr)
299+
float_ptr = POINTER(c_float)
300300
try:
301301
class C(c_int):
302302
pass
@@ -305,7 +305,7 @@ class C(c_int):
305305
t2 = POINTER(c_float)
306306
t1.set_type(c_float)
307307
self.assertEqual(t1(c_float(1.5))[0], 1.5)
308-
self.assertIs(c_int._type_, c_float)
308+
self.assertIs(t1._type_, c_float)
309309
self.assertIs(c_int.__pointer_type__, t1)
310310
self.assertIs(c_float.__pointer_type__, float_ptr)
311311

0 commit comments

Comments
 (0)