============================= test session starts ==============================
platform linux -- Python 3.6.10, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /home/aryaman4/OpenNMT-py
collected 158 items

onmt/tests/test_attention.py .                                           [  0%]
onmt/tests/test_audio_dataset.py ........                                [  5%]
onmt/tests/test_beam_search.py ........                                  [ 10%]
onmt/tests/test_copy_generator.py ......                                 [ 14%]
onmt/tests/test_embeddings.py ...                                        [ 16%]
onmt/tests/test_greedy_search.py ...                                     [ 18%]
onmt/tests/test_image_dataset.py ....                                    [ 20%]
onmt/tests/test_models.py .............................................. [ 50%]
............                                                             [ 57%]
onmt/tests/test_preprocess.py FF...FF.FFFF.FF.F.F..FF....FF.FF.FF.FF.FFF [ 84%]
FFF.                                                                     [ 86%]
onmt/tests/test_simple.py .                                              [ 87%]
onmt/tests/test_structured_attention.py .                                [ 87%]
onmt/tests/test_text_dataset.py ..........                               [ 94%]
onmt/tests/test_translation_server.py ........                           [ 99%]
tools/test_rouge.py E                                                    [100%]

==================================== ERRORS ====================================
_________________________ ERROR at setup of test_rouge _________________________
file /home/aryaman4/OpenNMT-py/tools/test_rouge.py, line 13
  def test_rouge(cand, ref):
E       fixture 'cand' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

/home/aryaman4/OpenNMT-py/tools/test_rouge.py:13
=================================== FAILURES ===================================
_ TestData.test_dataset_build_[('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('data_type',_'audio'),_('src_dir',_'/tmp/speech/a...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9fc97860>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('data_type',_'img'),_('src_dir',_'/tmp/im2text/im...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9fc974a8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('lower',_True),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('lower',_True),_('data_type',_'audio'),_('src_dir...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c3facc0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('lower',_True),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('lower',_True),_('data_type',_'img'),_('src_dir',...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c2f5048>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('shard_size',_5),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('shard_size',_5),_('data_type',_'audio'),_('src_d...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6baff240>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('shard_size',_5),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('shard_size',_5),_('data_type',_'img'),_('src_dir...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6ba73fd0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('shard_size',_50),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('shard_size',_50),_('data_type',_'audio'),_('src_...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6be69278>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('shard_size',_50),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('shard_size',_50),_('data_type',_'img'),_('src_di...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6ba5cc50>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('shuffle',_0),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('shuffle',_0),_('data_type',_'audio'),_('src_dir'...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c3d7ef0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('shuffle',_0),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('shuffle',_0),_('data_type',_'img'),_('src_dir',_...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9d936da0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('src_seq_len',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('src_seq_len',_1),_('data_type',_'audio'),_('src_...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9cae47b8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('src_seq_len',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('src_seq_len',_5000),_('data_type',_'audio'),_('s...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9dae3cf8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('src_seq_length_trunc',_3200),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('src_seq_length_trunc',_3200),_('data_type',_'aud...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6b8c1668>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('src_seq_length_trunc',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('src_seq_length_trunc',_5000),_('data_type',_'aud...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6b4ffeb8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'audio'),_('src_...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c489c18>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'img'),_('src_di...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6b7aef98>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'audio'),_('s...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c5881d0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'img'),_('src...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9d5cdc18>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'audio'...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c3b8978>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'img'),...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c6a7f98>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'aud...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9c075ef0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'img...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6bdf6dd8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9d9306d8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6b8bd470>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'audio'),_('s...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6bcb16a0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'img'),_('src...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6b839208>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'audio'),...ech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a6bdfaef0>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/speech/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
_ TestData.test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')] _

self = <onmt.tests.test_preprocess.TestData testMethod=test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'img'),_(...tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]>

    def test_method(self):
        if param_setting:
            opt = copy.deepcopy(self.opt)
            for param, setting in param_setting:
                setattr(opt, param, setting)
        else:
            opt = self.opt
>       getattr(self, methodname)(opt)

onmt/tests/test_preprocess.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
onmt/tests/test_preprocess.py:54: in dataset_build
    'train', fields, src_reader, tgt_reader, align_reader, opt)
onmt/bin/preprocess.py:205: in build_save_dataset
    for sub_counter in p.imap(func, shard_iter):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocessing.pool.IMapIterator object at 0x7f1a9d9eb6d8>
timeout = None

    def next(self, timeout=None):
        with self._cond:
            try:
                item = self._items.popleft()
            except IndexError:
                if self._index == self._length:
                    raise StopIteration
                self._cond.wait(timeout)
                try:
                    item = self._items.popleft()
                except IndexError:
                    if self._index == self._length:
                        raise StopIteration
                    raise TimeoutError
    
        success, value = item
        if success:
            return value
>       raise value
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/im2text/src-train-head.txt'

../anaconda3/envs/OpenNMT/lib/python3.6/multiprocessing/pool.py:735: FileNotFoundError
=============================== warnings summary ===============================
onmt/tests/test_audio_dataset.py::TestAudioField::test_numericalize_shape
  /pytorch/aten/src/ATen/native/TensorFactories.cpp:361: UserWarning: Deprecation warning: In a future PyTorch release torch.full will no longer return tensors of floating dtype by default. Instead, a bool fill_value will return a tensor of torch.bool dtype, and an integral fill_value will return a tensor of torch.long dtype. Set the optional `dtype` or `out` arguments to suppress this warning.

onmt/tests/test_audio_dataset.py::TestAudioField::test_numericalize_shape
  /home/aryaman4/OpenNMT-py/onmt/inputters/audio_dataset.py:205: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
    lengths = torch.tensor(lengths, dtype=torch.int, device=device)

onmt/tests/test_beam_search.py::TestBeamSearch::test_advance_with_all_repeats_gets_blocked
  /pytorch/aten/src/ATen/native/BinaryOps.cpp:66: UserWarning: Integer division of tensors using div or / is deprecated, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.

onmt/tests/test_beam_search.py::TestBeamSearchAgainstReferenceCase::test_beam_advance_against_known_reference
  /pytorch/aten/src/ATen/native/BinaryOps.cpp:81: UserWarning: Integer division of tensors using div or / is deprecated, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.

onmt/tests/test_models.py: 15 tests with warnings
onmt/tests/test_translation_server.py: 7 tests with warnings
  /home/aryaman4/anaconda3/envs/OpenNMT/lib/python3.6/site-packages/torch-1.5.1-py3.6-linux-x86_64.egg/torch/nn/modules/rnn.py:50: UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.3 and num_layers=1
    "num_layers={}".format(dropout, num_layers))

-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================ slowest test durations ============================
1.80s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_length_trunc',_1)]
1.80s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_len',_5000)]
1.78s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('dynamic_dict',_True),_('share_vocab',_True)]
1.70s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('lower',_True)]
1.70s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('dynamic_dict',_True)]
1.69s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_1)]
1.69s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_len',_1)]
1.68s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('share_vocab',_True)]
1.68s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_5000)]
1.62s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('dynamic_dict',_True),_('shard_size',_500000)]
1.60s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_vocab_size',_10000),_('tgt_vocab_size',_10000)]
1.59s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_1)]
1.59s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_length_trunc',_5000)]
1.59s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_5000)]
1.58s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shuffle',_0)]
1.58s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_standard
1.56s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_vocab_size',_1),_('tgt_vocab_size',_1)]
1.37s call     onmt/tests/test_audio_dataset.py::TestAudioDataReader::test_read_from_dir_and_data_file_containing_filenames
1.36s call     onmt/tests/test_audio_dataset.py::TestAudioDataReader::test_read_from_dir_and_data_file_containing_paths
1.34s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_vocab',_'/tmp/src_vocab.txt'),_('tgt_vocab',_'/tmp/tgt_vocab.txt')]
0.83s call     onmt/tests/test_embeddings.py::TestEmbeddings::test_embeddings_trainable_params_update
0.80s call     onmt/tests/test_audio_dataset.py::TestAudioField::test_pad_pads_right_places_and_uses_correct_index
0.51s call     onmt/tests/test_embeddings.py::TestEmbeddings::test_embeddings_forward_shape
0.46s setup    onmt/tests/test_audio_dataset.py::TestAudioDataReader::test_read_from_dir_and_data_file_containing_filenames
0.34s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('layers',_10),_('sample_rate',_5500),_('window_size',_0.03)]
0.29s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('layers',_10)]
0.28s call     onmt/tests/test_embeddings.py::TestEmbeddings::test_embeddings_trainable_params
0.25s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('layers',_10)]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('lower',_True),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_length_trunc',_3200),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('lower',_True),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_5),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_50),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_5),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_len',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shuffle',_0),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_len',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shuffle',_0),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_length_trunc',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_50),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
0.11s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('context_gate',_'both')]
0.11s call     onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
0.10s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('context_gate',_'source')]
0.09s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('context_gate',_'target')]
0.09s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('encoder_type',_'rnn'),_('global_attention',_'mlp'),_('copy_attn',_True),_('copy_attn_type',_'general')]
0.09s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('copy_attn',_True)]
0.09s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('global_attention',_'mlp')]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('coverage_attn',_True)]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_standard
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('encoder_type',_'rnn'),_('global_attention',_None),_('copy_attn',_True),_('copy_attn_type',_'general')]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('rnn_type',_'GRU')]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('encoder_type',_'rnn'),_('global_attention',_None)]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('encoder_type',_'brnn')]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('encoder_type',_'brnn'),_('brnn_merge',_'sum')]
0.08s call     onmt/tests/test_models.py::TestModel::test_imagemodel_forward_[('input_feed',_0)]
0.08s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('context_gate',_'target'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.08s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('context_gate',_'both'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.08s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('context_gate',_'source'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.07s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('encoder_type',_'rnn'),_('global_attention',_'mlp'),_('copy_attn',_True),_('copy_attn_type',_'general'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.07s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('copy_attn',_True),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.07s call     onmt/tests/test_translation_server.py::TestServerModel::test_run
0.07s call     onmt/tests/test_translation_server.py::TestServerModel::test_deferred_loading_model_and_unload
0.07s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('context_gate',_'target')]
0.07s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('global_attention',_'mlp'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.07s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.07s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('encoder_type',_'rnn'),_('global_attention',_None),_('copy_attn',_True),_('copy_attn_type',_'general'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.06s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('coverage_attn',_True),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.06s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('context_gate',_'both')]
0.06s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('context_gate',_'source')]
0.06s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('rnn_type',_'GRU'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.06s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('encoder_type',_'brnn'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.06s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('encoder_type',_'brnn'),_('brnn_merge',_'sum'),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.06s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('encoder_type',_'rnn'),_('global_attention',_'mlp'),_('copy_attn',_True),_('copy_attn_type',_'general')]
0.06s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('copy_attn',_True)]
0.06s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('encoder_type',_'rnn'),_('global_attention',_None),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.06s call     onmt/tests/test_translation_server.py::TestTranslationServer::test_start_with_two_models
0.06s call     onmt/tests/test_translation_server.py::TestServerModel::test_detokenizing_with_no_tokenizer_fails
0.06s call     onmt/tests/test_translation_server.py::TestServerModel::test_load_model_on_init_and_unload
0.06s call     onmt/tests/test_translation_server.py::TestTranslationServer::test_start_with_initial_loading
0.06s call     onmt/tests/test_translation_server.py::TestServerModel::test_tokenizing_with_no_tokenizer_fails
0.05s call     onmt/tests/test_models.py::TestModel::test_audiomodel_forward_[('input_feed',_0),_('sample_rate',_5500),_('window_size',_0.03),_('audio_enc_pooling',_'2')]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('global_attention',_'mlp')]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('coverage_attn',_True)]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_standard
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('encoder_type',_'rnn'),_('global_attention',_None),_('copy_attn',_True),_('copy_attn_type',_'general')]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('decoder_type',_'cnn'),_('encoder_type',_'cnn')]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('encoder_type',_'brnn'),_('brnn_merge',_'sum')]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('encoder_type',_'brnn')]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('encoder_type',_'rnn'),_('global_attention',_None)]
0.05s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('input_feed',_0)]
0.04s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('rnn_type',_'GRU')]
0.03s call     onmt/tests/test_copy_generator.py::TestCopyGenerator::test_copy_gen_trainable_params_update
0.03s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('decoder_type',_'transformer'),_('encoder_type',_'transformer'),_('src_word_vec_size',_16),_('tgt_word_vec_size',_16),_('rnn_size',_16),_('position_encoding',_True)]
0.03s setup    onmt/tests/test_image_dataset.py::TestImageDataReader::test_read_from_dir_and_data_file_containing_filenames
0.02s call     onmt/tests/test_copy_generator.py::TestCopyGeneratorLoss::test_copy_loss_ignore_index_is_ignored
0.02s call     onmt/tests/test_copy_generator.py::TestCopyGeneratorLoss::test_copy_loss_output_range_is_positive
0.02s call     onmt/tests/test_copy_generator.py::TestCopyGeneratorLoss::test_copy_loss_forward_shape
0.02s call     onmt/tests/test_models.py::TestModel::test_encoder_forward_standard
0.02s call     onmt/tests/test_image_dataset.py::TestImageDataReader::test_read_from_dir_and_data_file_containing_filenames
0.02s call     onmt/tests/test_audio_dataset.py::TestAudioField::test_numericalize_shape
0.02s call     onmt/tests/test_image_dataset.py::TestImageDataReader::test_read_from_dir_and_data_file_containing_paths
0.01s call     onmt/tests/test_audio_dataset.py::TestAudioField::test_process_shape
0.01s call     onmt/tests/test_audio_dataset.py::TestAudioField::test_pad_shape_and_lengths
0.01s setup    onmt/tests/test_image_dataset.py::TestImageDataReader1Channel::test_read_from_dir_and_data_file_containing_filenames
0.01s call     onmt/tests/test_models.py::TestModel::test_nmtmodel_forward_[('decoder_type',_'transformer'),_('encoder_type',_'transformer'),_('src_word_vec_size',_16),_('tgt_word_vec_size',_16),_('rnn_size',_16)]
0.01s call     onmt/tests/test_image_dataset.py::TestImageDataReader1Channel::test_read_from_dir_and_data_file_containing_filenames
0.01s call     onmt/tests/test_image_dataset.py::TestImageDataReader1Channel::test_read_from_dir_and_data_file_containing_paths
0.01s call     onmt/tests/test_attention.py::TestAttention::test_masked_global_attention
0.01s call     onmt/tests/test_audio_dataset.py::TestAudioField::test_process_lengths
0.01s call     onmt/tests/test_copy_generator.py::TestCopyGenerator::test_copy_gen_outp_has_no_prob_of_pad
0.01s call     onmt/tests/test_copy_generator.py::TestCopyGenerator::test_copy_gen_forward_shape
0.01s call     onmt/tests/test_greedy_search.py::TestGreedySearch::test_returns_correct_scores_non_deterministic
0.01s call     onmt/tests/test_audio_dataset.py::TestAudioField::test_pad_returns_correct_lengths
0.01s call     onmt/tests/test_beam_search.py::TestBeamSearch::test_repeating_excluded_index_does_not_die
0.01s teardown onmt/tests/test_audio_dataset.py::TestAudioDataReader::test_read_from_dir_and_data_file_containing_paths
0.01s call     onmt/tests/test_beam_search.py::TestBeamSearch::test_advance_with_all_repeats_gets_blocked
0.01s call     onmt/tests/test_beam_search.py::TestBeamSearch::test_advance_with_some_repeats_gets_blocked
0.01s call     onmt/tests/test_beam_search.py::TestBeamSearch::test_doesnt_predict_eos_if_shorter_than_min_len
0.01s call     onmt/tests/test_text_dataset.py::TestTextMultiField::test_process_shape

(0.00 durations hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('lower',_True),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('lower',_True),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_5),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_5),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_50),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shard_size',_50),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shuffle',_0),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('shuffle',_0),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_len',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_len',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_length_trunc',_3200),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('src_seq_length_trunc',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_len',_5000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_seq_length_trunc',_5000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab',_'/tmp/tgt_vocab.txt'),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_1),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'audio'),_('src_dir',_'/tmp/speech/an4_dataset'),_('train_src',_['/tmp/speech/src-train-head.txt']),_('train_tgt',_['/tmp/speech/tgt-train-head.txt']),_('valid_src',_'/tmp/speech/src-val-head.txt'),_('valid_tgt',_'/tmp/speech/tgt-val-head.txt'),_('sample_rate',_16000),_('window_size',_0.04),_('window_stride',_0.02),_('window',_'hamming')]
FAILED onmt/tests/test_preprocess.py::TestData::test_dataset_build_[('tgt_vocab_size',_10000),_('data_type',_'img'),_('src_dir',_'/tmp/im2text/images'),_('train_src',_['/tmp/im2text/src-train-head.txt']),_('train_tgt',_['/tmp/im2text/tgt-train-head.txt']),_('valid_src',_'/tmp/im2text/src-val-head.txt'),_('valid_tgt',_'/tmp/im2text/tgt-val-head.txt')]
ERROR tools/test_rouge.py::test_rouge
============ 28 failed, 129 passed, 26 warnings, 1 error in 46.03s =============
