Skip to content

Commit ffc5745

Browse files
skirpichevvstinner
andauthored
Apply suggestion from @vstinner
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent defb1bb commit ffc5745

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/test/test_array.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ def test_numbers(self):
198198
[9006104071832581.0, float('inf'), float('-inf'), -0.0]),
199199
(['d'], IEEE_754_DOUBLE_BE, '>dddd',
200200
[9006104071832581.0, float('inf'), float('-inf'), -0.0]),
201-
(['f'], IEEE_754_FLOAT_COMPLEX_LE, '<ffff',
201+
(['F'], IEEE_754_FLOAT_COMPLEX_LE, '<FFFF',
202202
[16711938.0j, float('inf'), complex('1-infj'), -0.0]),
203-
(['f'], IEEE_754_FLOAT_COMPLEX_BE, '>ffff',
203+
(['F'], IEEE_754_FLOAT_COMPLEX_BE, '>FFFF',
204204
[16711938.0j, float('inf'), complex('1-infj'), -0.0]),
205-
(['d'], IEEE_754_DOUBLE_COMPLEX_LE, '<dddd',
205+
(['D'], IEEE_754_DOUBLE_COMPLEX_LE, '<DDDD',
206+
[9006104071832581.0j, float('inf'), complex('1-infj'), -0.0]),
207+
(['D'], IEEE_754_DOUBLE_COMPLEX_BE, '>DDDD',
206208
[9006104071832581.0j, float('inf'), complex('1-infj'), -0.0]),
207-
(['d'], IEEE_754_DOUBLE_COMPLEX_BE, '>dddd',
208-
[9006104071832581.0j, float('inf'), complex('1-infj'), -0.0])
209209
)
210210
for testcase in testcases:
211211
valid_typecodes, mformat_code, struct_fmt, values = testcase

0 commit comments

Comments
 (0)