Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adjust test
  • Loading branch information
skirpichev committed Jun 26, 2026
commit c5b52c0d3f5ff0fc22cac1c83485f4b636e5b478
4 changes: 2 additions & 2 deletions Lib/test/test_memoryview.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@ def test_half_float(self):
self.assertListEqual(half_view.tolist(), float_view.tolist())

def test_complex_types(self):
float_complex_data = struct.pack('FFF', 0.0, -1.5j, 1+2j)
double_complex_data = struct.pack('DDD', 0.0, -1.5j, 1+2j)
float_complex_data = struct.pack('ZfZfZf', 0.0, -1.5j, 1+2j)
double_complex_data = struct.pack('ZdZdZd', 0.0, -1.5j, 1+2j)
float_complex_view = memoryview(float_complex_data).cast('Zf')
double_complex_view = memoryview(double_complex_data).cast('Zd')
self.assertEqual(float_complex_view.nbytes * 2, double_complex_view.nbytes)
Expand Down
Loading