From 12e8e5dda75b563a2e2ba93b2fd7534f94288f44 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 9 Aug 2014 15:25:51 +0300 Subject: [PATCH] fix bytes/str error --- tests/test_sampling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sampling.py b/tests/test_sampling.py index d309018..416ccbd 100644 --- a/tests/test_sampling.py +++ b/tests/test_sampling.py @@ -15,7 +15,7 @@ def test_resample(): assert np.max(np.abs(err)) < 1e-4 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