mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix a py3k warning in the sndhdr module (found with test_email)
This commit is contained in:
parent
daa524a293
commit
8d6c9eeef7
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ def test_au(h, f):
|
|||
else:
|
||||
sample_bits = '?'
|
||||
frame_size = sample_size * nchannels
|
||||
return type, rate, nchannels, data_size/frame_size, sample_bits
|
||||
return type, rate, nchannels, data_size//frame_size, sample_bits
|
||||
|
||||
tests.append(test_au)
|
||||
|
||||
|
@ -109,7 +109,7 @@ def test_hcom(h, f):
|
|||
if h[65:69] != 'FSSD' or h[128:132] != 'HCOM':
|
||||
return None
|
||||
divisor = get_long_be(h[128+16:128+20])
|
||||
return 'hcom', 22050/divisor, 1, -1, 8
|
||||
return 'hcom', 22050//divisor, 1, -1, 8
|
||||
|
||||
tests.append(test_hcom)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue