mirror of
https://github.com/romanz/amodem.git
synced 2026-04-19 04:36:02 +08:00
fix bytes/str error
This commit is contained in:
@@ -15,7 +15,7 @@ def test_resample():
|
|||||||
assert np.max(np.abs(err)) < 1e-4
|
assert np.max(np.abs(err)) < 1e-4
|
||||||
|
|
||||||
dst = BytesIO()
|
dst = BytesIO()
|
||||||
sampling.resample(src=BytesIO('\x00\x00'), dst=dst, df=0.0)
|
sampling.resample(src=BytesIO(b'\x00\x00'), dst=dst, df=0.0)
|
||||||
assert dst.tell() == 0
|
assert dst.tell() == 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user