abinash@change-the-world:~/apertium(master)$ python tests/run_tests.py
test_cat_is_a_verb (tagger.AmbiguityClassTest) ... run /home/abinash/apertium/apertium/apertium-tagger -s 0 /tmp/tmp8y88Bi /tmp/tmpPDoT58 /tmp/tmpmVx6SI /tmp/tmpAY3r0o /tmp/tmpdE6_88 /tmp/tmpPDoT58
11 states and 13 ambiguity classes
{DET} Word: The -- {DET} Word: The
{VERB} Word: falling -- {VERB} Word: falling
{NOUN} Word: cat -- {NOUN} Word: cat
{VERB} Word: has -- {VERB} Word: has
{VERB} Word: booked -- {VERB} Word: booked
{NOUN} Word: books -- {VERB,NOUN} Word: books
{TAG_SENT} Word: . -- {TAG_SENT} Word: .
{VERB} Word: Close -- {VERB,NOUN,ADJ} Word: Close
{DET} Word: the -- {DET} Word: the
{NOUN} Word: books -- {VERB,NOUN} Word: books
{TAG_SENT} Word: . -- {TAG_SENT} Word: .
{DET} Word: The -- {DET} Word: The
{VERB} Word: falling -- {VERB} Word: falling
{NOUN} Word: cat -- {NOUN} Word: cat
{VERB} Word: has -- {VERB} Word: has
{NOUN} Word: books -- {VERB,NOUN} Word: books
{TAG_SENT} Word: . -- {TAG_SENT} Word: .
{TAG_kEOF} Word: -- {TAG_kEOF} Word:
*** Error in `/home/abinash/apertium/apertium/.libs/apertium-tagger': free(): invalid next size (fast): 0x0000564f64df99d0 ***
ERROR
test_changing_class_hmm_sup (tagger.AmbiguityClassTest) ... run /home/abinash/apertium/apertium/apertium-tagger -s 0 /tmp/tmp_J5fZJ /tmp/tmpVR0ZGW /tmp/tmp4C9rxw /tmp/tmpTosizp /tmp/tmpmkv7s9 /tmp/tmpVR0ZGW
11 states and 13 ambiguity classes
{DET} Word: The -- {DET} Word: The
{NOUN} Word: cat -- {NOUN} Word: cat
{VERB} Word: books -- {VERB,NOUN} Word: books
{DET} Word: the -- {DET} Word: the
{NOUN} Word: room -- {NOUN} Word: room
{TAG_SENT} Word: . -- {TAG_SENT} Word: .
{DET} Word: The -- {DET} Word: The
{ADJ} Word: red -- {ADJ} Word: red
{NOUN} Word: cat -- {NOUN} Word: cat
{VERB} Word: books -- {VERB,NOUN} Word: books
{DET} Word: the -- {DET} Word: the
{ADJ} Word: red -- {ADJ} Word: red
{NOUN} Word: room -- {NOUN} Word: room
{TAG_SENT} Word: . -- {TAG_SENT} Word: .
{DET} Word: The -- {DET} Word: The
{ADJ} Word: red -- {ADJ} Word: red
{NOUN} Word: cat -- {NOUN} Word: cat
{VERB} Word: books -- {VERB,NOUN} Word: books
{DET} Word: the -- {DET} Word: the
{NOUN} Word: room -- {NOUN} Word: room
{TAG_SENT} Word: . -- {TAG_SENT} Word: .
{TAG_kEOF} Word: -- {TAG_kEOF} Word:
*** Error in `/home/abinash/apertium/apertium/.libs/apertium-tagger': free(): invalid next size (fast): 0x000055631235e9d0 ***
ERROR
test_changing_class_hmm_unsup (tagger.AmbiguityClassTest) ... run /home/abinash/apertium/apertium/apertium-tagger -t 1 /tmp/tmpk4FFdK /tmp/tmpg9AaSS /tmp/tmpKaXgx_ /tmp/tmp33ZA3Z
11 states and 13 ambiguity classes
ERROR
test_changing_class_sliding_window (tagger.AmbiguityClassTest) ... run /home/abinash/apertium/apertium/apertium-tagger --sliding-window -t 1 /tmp/tmprtyZ9I /tmp/tmplRbrZh /tmp/tmppvbiHI /tmp/tmpdQI_lx
11 states and 13 ambiguity classes
run /home/abinash/apertium/apertium/apertium-tagger -d --sliding-window -g /tmp/tmpdQI_lx /tmp/tmpmbaHZI
ERROR
======================================================================
ERROR: test_cat_is_a_verb (tagger.AmbiguityClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abinash/apertium/tests/tagger/__init__.py", line 316, in test_cat_is_a_verb
model_fn, tagged, untagged])
File "/home/abinash/apertium/tests/tagger/__init__.py", line 85, in inner
return f(*args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/home/abinash/apertium/apertium/apertium-tagger', '-s', '0', '/tmp/tmp8y88Bi', '/tmp/tmpPDoT58', '/tmp/tmpmVx6SI', '/tmp/tmpAY3r0o', '/tmp/tmpdE6_88', '/tmp/tmpPDoT58']' returned non-zero exit status -6
======================================================================
ERROR: test_changing_class_hmm_sup (tagger.AmbiguityClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abinash/apertium/tests/tagger/__init__.py", line 290, in test_changing_class_hmm_sup
model_fn, tagged, untagged])
File "/home/abinash/apertium/tests/tagger/__init__.py", line 85, in inner
return f(*args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/home/abinash/apertium/apertium/apertium-tagger', '-s', '0', '/tmp/tmp_J5fZJ', '/tmp/tmpVR0ZGW', '/tmp/tmp4C9rxw', '/tmp/tmpTosizp', '/tmp/tmpmkv7s9', '/tmp/tmpVR0ZGW']' returned non-zero exit status -6
======================================================================
ERROR: test_changing_class_hmm_unsup (tagger.AmbiguityClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abinash/apertium/tests/tagger/__init__.py", line 298, in test_changing_class_hmm_unsup
model_fn])
File "/home/abinash/apertium/tests/tagger/__init__.py", line 85, in inner
return f(*args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/home/abinash/apertium/apertium/apertium-tagger', '-t', '1', '/tmp/tmpk4FFdK', '/tmp/tmpg9AaSS', '/tmp/tmpKaXgx_', '/tmp/tmp33ZA3Z']' returned non-zero exit status -11
======================================================================
ERROR: test_changing_class_sliding_window (tagger.AmbiguityClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abinash/apertium/tests/tagger/__init__.py", line 307, in test_changing_class_sliding_window
self.changing_class_impl(['--sliding-window'], model_fn)
File "/home/abinash/apertium/tests/tagger/__init__.py", line 268, in changing_class_impl
stdout=self.devnull)
File "/home/abinash/apertium/tests/tagger/__init__.py", line 85, in inner
return f(*args, **kwargs)
File "/home/abinash/apertium/tests/tagger/__init__.py", line 67, in check_stderr
with Popen(*popenargs, stderr=PIPE, **kwargs) as process:
AttributeError: __exit__
----------------------------------------------------------------------
Ran 4 tests in 2.661s
FAILED (errors=4)
runTest (pretransfer.BasicPretransferTest) ... ok
runTest (pretransfer.InlineBlankPretransferTest) ... expected failure
runTest (pretransfer.JoinGroupPretransferTest) ... ok
runTest (pretransfer.PretransferTest) ... ok
----------------------------------------------------------------------
Ran 4 tests in 0.044s
OK (expected failures=1)
runTest (postchunk.EmptyMacroPostchunkTest) ... ok
runTest (postchunk.EmptyNoMacroPostchunkTest) ... ok
runTest (postchunk.PostchunkTest) ... ok
runTest (postchunk.SimplePostchunkTest) ... ERROR
runTest (postchunk.UseMacroPostchunkTest) ... ok
======================================================================
ERROR: runTest (postchunk.SimplePostchunkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/abinash/apertium/tests/postchunk/__init__.py", line 65, in runTest
self.assertEqual(self.communicateFlush(inp+"[][\n]"),
File "/home/abinash/apertium/tests/postchunk/__init__.py", line 37, in communicateFlush
self.proc.stdin.write(string.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
----------------------------------------------------------------------
Ran 5 tests in 0.275s
FAILED (errors=1)