Skip to content

Commit c5b52c0

Browse files
committed
adjust test
1 parent 9ca0a71 commit c5b52c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_memoryview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ def test_half_float(self):
717717
self.assertListEqual(half_view.tolist(), float_view.tolist())
718718

719719
def test_complex_types(self):
720-
float_complex_data = struct.pack('FFF', 0.0, -1.5j, 1+2j)
721-
double_complex_data = struct.pack('DDD', 0.0, -1.5j, 1+2j)
720+
float_complex_data = struct.pack('ZfZfZf', 0.0, -1.5j, 1+2j)
721+
double_complex_data = struct.pack('ZdZdZd', 0.0, -1.5j, 1+2j)
722722
float_complex_view = memoryview(float_complex_data).cast('Zf')
723723
double_complex_view = memoryview(double_complex_data).cast('Zd')
724724
self.assertEqual(float_complex_view.nbytes * 2, double_complex_view.nbytes)

0 commit comments

Comments
 (0)