Source: python-datrie
Version: 0.7.1-1
Severity: important
https://buildd.debian.org/status/package.php?p=python-datrie&suite=sid
...
=================================== FAILURES ===================================
__________________________________ test_keys ___________________________________
def test_keys():
trie = _trie()
state = datrie.State(trie)
it = datrie.Iterator(state)
keys = []
while it.next():
> keys.append(it.key())
tests/test_iteration.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:942: in datrie._TrieIterator.key
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x122165ed0, size 16 at 0x3ff7f019230>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
______________________________ test_keys_non_root ______________________________
def test_keys_non_root():
trie = _trie()
state = datrie.State(trie)
state.walk('pro')
it = datrie.Iterator(state)
keys = []
while it.next():
> keys.append(it.key())
tests/test_iteration.py:98:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:942: in datrie._TrieIterator.key
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x122229500, size 16 at 0x3ff7eb4eab0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
________________________________ test_keys_tail ________________________________
def test_keys_tail():
trie = _trie()
state = datrie.State(trie)
state.walk('pro')
it = datrie.Iterator(state)
keys = []
while it.next():
> keys.append(it.key())
tests/test_iteration.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:942: in datrie._TrieIterator.key
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x1206a6490, size 16 at 0x3ff7eb454f0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
_______________________________ test_trie_items ________________________________
def test_trie_items():
trie = datrie.Trie(string.ascii_lowercase)
trie['foo'] = 10
trie['bar'] = 'foo'
trie['foobar'] = 30
assert trie.values() == ['foo', 10, 30]
> assert trie.items() == [('bar', 'foo'), ('foo', 10), ('foobar', 30)]
tests/test_trie.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:721: in datrie.Trie.items
???
src/datrie.pyx:748: in datrie.Trie.items
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x120c54310, size 12 at 0x3ff7ed078b0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
________________________________ test_trie_iter ________________________________
def test_trie_iter():
trie = datrie.Trie(string.ascii_lowercase)
assert list(trie) == []
trie['foo'] = trie['bar'] = trie['foobar'] = 42
> assert list(trie) == ['bar', 'foo', 'foobar']
tests/test_trie.py:154:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:587: in __iter__
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x1207c72f0, size 12 at 0x3ff7ec8a6f0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
_____________________________ test_trie_comparison _____________________________
def test_trie_comparison():
trie = datrie.Trie(string.ascii_lowercase)
assert trie == trie
assert trie == datrie.Trie(string.ascii_lowercase)
other = datrie.Trie(string.ascii_lowercase)
trie['foo'] = 42
other['foo'] = 24
> assert trie != other
tests/test_trie.py:165:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:254: in datrie.BaseTrie.__richcmp__
???
src/datrie.pyx:247: in datrie.BaseTrie.__richcmp__
???
src/datrie.pyx:587: in __iter__
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x1207d62f0, size 12 at 0x3ff7ed071f0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
______________________________ test_trie_suffixes ______________________________
def test_trie_suffixes():
trie = datrie.Trie(string.ascii_lowercase)
trie['pro'] = 1
trie['prof'] = 2
trie['product'] = 3
trie['production'] = 4
trie['producer'] = 5
trie['producers'] = 6
trie['productivity'] = 7
> assert trie.suffixes('pro') == [
'', 'ducer', 'ducers', 'duct', 'duction', 'ductivity', 'f'
]
tests/test_trie.py:205:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:357: in datrie.BaseTrie.suffixes
???
src/datrie.pyx:373: in datrie.BaseTrie.suffixes
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x120483e30, size 20 at 0x3ff7ed496f0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
___________________ TestPrefixLookups.test_trie_keys_prefix ____________________
self = <tests.test_trie.TestPrefixLookups object at 0x3ff7ebc2128>
def test_trie_keys_prefix(self):
trie = self._trie()
> assert trie.keys('foobarz') == ['foobarzartic']
tests/test_trie.py:244:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:589: in datrie.BaseTrie.keys
???
src/datrie.pyx:611: in datrie.BaseTrie.keys
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x1207e8070, size 20 at 0x3ff7f0591f0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
___________________ TestPrefixLookups.test_trie_items_prefix ___________________
self = <tests.test_trie.TestPrefixLookups object at 0x3ff7f007710>
def test_trie_items_prefix(self):
trie = self._trie()
> assert trie.items('foobarz') == [('foobarzartic', None)]
tests/test_trie.py:255:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/datrie.pyx:721: in datrie.Trie.items
???
src/datrie.pyx:751: in datrie.Trie.items
???
src/datrie.pyx:945: in datrie._TrieIterator.key
???
src/datrie.pyx:1111: in datrie.unicode_from_alpha_char
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
input = <read-only buffer ptr 0x12222b420, size 20 at 0x3ff7ecd21b0>
errors = 'strict'
def decode(input, errors='strict'):
> return codecs.utf_32_le_decode(input, errors, True)
E UnicodeDecodeError: 'utf32' codec can't decode bytes in position 0-3:
code point not in range(0x110000)
/usr/lib/python2.7/encodings/utf_32_le.py:11: UnicodeDecodeError
===================== 9 failed, 29 passed in 1.50 seconds ======================
E: pybuild pybuild:336: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_datrie/build; python2.7 -m pytest tests
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned
exit code 13
make: *** [debian/rules:7: build-arch] Error 25