Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261908 - dev-python/pyenchant-1.1.5: Test failures
Summary: dev-python/pyenchant-1.1.5: Test failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-09 20:25 UTC by Hans de Graaff
Modified: 2010-06-17 18:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2009-03-09 20:25:41 UTC
Installing dev-python/pyenchant-1.1.5 fails 'make check':

running test
running egg_info
writing pyenchant.egg-info/PKG-INFO
writing eager_resources to pyenchant.egg-info/eager_resources.txt
writing top-level names to pyenchant.egg-info/top_level.txt
writing dependency_links to pyenchant.egg-info/dependency_links.txt
reading manifest file 'pyenchant.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'tools/pyenchant-bdist-win32-sources'
writing manifest file 'pyenchant.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-2.5/enchant/_enchant.so -> enchant
Test that the en_US language is available. ... ok
Test whether all advertised languages are in fact available. ... FAIL
Test proper functioning of live dicts count. ... 
** (process:28404): WARNING **: 1 dictionaries weren't free'd.

ok
Test live dicts count with normalised tag names. ... 
** (process:28404): WARNING **: 1 dictionaries weren't free'd.

ok
Test that provider ordering works correctly. ... ok
Test whether all advertised providers are in fact available. ... FAIL
Test behavior of default language selection. ... ok
Test that the en_US language is available. ... ok
Test that the dict's broker is set correctly. ... ok
Test that check() works on some common words. ... ok
Test that adding words to the session works as required. ... ok
Test that suggest() gets simple suggestions right. ... ok
Test whether suggest() hangs on some inputs (Bug #1404196) ... ok
Test that the dict's tag is set correctly. ... ok
Test checking/suggesting for unicode strings ... ok
Test functionality of DictWithPWL. ... FAIL
Test that adding words to a PWL works correctly. ... FAIL
Test that basic checking words on PWLs. ... ok
Test performance of a basic spellchecking run. ... ok
Simple regression test for get_tokenizer. ... ok
Simple regression test for english tokenization. ... ok

======================================================================
FAIL: Test whether all advertised languages are in fact available.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyenchant-1.1.5/work/pyenchant-1.1.5/enchant/__init__.py", line 803, in test_LangsAreAvail
    self.assert_(self.broker.dict_exists(lang))
AssertionError

======================================================================
FAIL: Test whether all advertised providers are in fact available.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyenchant-1.1.5/work/pyenchant-1.1.5/enchant/__init__.py", line 808, in test_ProvsAreAvail
    self.assert_(self.broker.dict_exists(lang))
AssertionError

======================================================================
FAIL: Test functionality of DictWithPWL.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyenchant-1.1.5/work/pyenchant-1.1.5/enchant/__init__.py", line 1008, in test_DWPWL
    self.assert_("Flagen\n" in self.getPWLContents())
AssertionError

======================================================================
FAIL: Test that adding words to a PWL works correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyenchant-1.1.5/work/pyenchant-1.1.5/enchant/__init__.py", line 995, in test_add
    self.assert_("Flagen\n" in self.getPWLContents())
AssertionError

----------------------------------------------------------------------
Ran 21 tests in 3.763s

FAILED (failures=4)
 * 
 * ERROR: dev-python/pyenchant-1.1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line 2534:  Called die
 * The specific snippet of code:
 *       "${python}" setup.py test || die "test failed"
 *  The die message:
 *   test failed
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-02 05:22:58 UTC
Tests are broken also in dev-python/pyenchant-1.5.3, so I have restricted them.
Comment 2 Dustin Polke 2010-06-09 08:37:56 UTC
Tests fail in pyenchant-1.6.2 as well:

======================================================================
FAIL: Test whether all advertised languages are in fact available.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyenchant-1.6.2/work/pyenchant-1.6.2/enchant/tests.py", line 83, in test_LangsAreAvail
    assert False, "language '"+lang+"' advertised but non-existent"
AssertionError: language 'de_DE_frami' advertised but non-existent

======================================================================
FAIL: Test whether all advertised providers are in fact available.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyenchant-1.6.2/work/pyenchant-1.6.2/enchant/tests.py", line 88, in test_ProvsAreAvail
    self.assert_(self.broker.dict_exists(lang))
AssertionError

Please reopen.
Comment 3 Dustin Polke 2010-06-17 18:34:21 UTC
(In reply to comment #2)
> Please reopen.
Done 

Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-17 18:40:46 UTC
This bug was about different test failures.