Mercurial > hg > auditok
changeset 324:9541798ff4d9
Fix issue with mock.__round__
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Sun, 20 Oct 2019 14:48:52 +0100 |
parents | 7c2fb10b949f |
children | c95f336c5069 |
files | tests/test_core.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_core.py Sun Oct 20 14:33:39 2019 +0100 +++ b/tests/test_core.py Sun Oct 20 14:48:52 2019 +0100 @@ -3,7 +3,7 @@ from random import random from tempfile import TemporaryDirectory from array import array as array_ -from unittest import TestCase +from unittest import TestCase, mock from unittest.mock import patch from genty import genty, genty_dataset from auditok import split, AudioRegion, AudioParameterError @@ -16,6 +16,8 @@ from auditok.util import AudioDataSource from auditok.io import get_audio_source +mock._magics.add("__round__") + def _make_random_length_regions( byte_seq, sampling_rate, sample_width, channels