# HG changeset patch # User Amine Sehili # Date 1546781313 -3600 # Node ID a2ad7085c2627036a92461e3f8f97ef0e281042c # Parent 19300cbbb84dce0e05fb36ae161ff49b6af239e5 Fix bug in _make_random_length_regions diff -r 19300cbbb84d -r a2ad7085c262 tests/test_core.py --- a/tests/test_core.py Sun Jan 06 14:19:53 2019 +0100 +++ b/tests/test_core.py Sun Jan 06 14:28:33 2019 +0100 @@ -10,7 +10,7 @@ regions = [] for b in byte_seq: duration = round(random() * 10, 6) - data = b * int(duration * sampling_rate * sample_width * channels) + data = b * int(duration * sampling_rate) * sample_width * channels start = round(random() * 13, 3) region = AudioRegion( data, start, sampling_rate, sample_width, channels