Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 452958 - dev-python/html5lib: fails tests with all Python implementations
Summary: dev-python/html5lib: fails tests with all Python implementations
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 475342
  Show dependency tree
 
Reported: 2013-01-19 12:44 UTC by Michał Górny
Modified: 2016-01-15 08:25 UTC (History)
2 users (show)

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


Attachments
Build log for python2.5 (build-python2.5.log,23.66 KB, text/plain)
2013-01-19 12:44 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-19 12:44:53 UTC
Created attachment 336128 [details]
Build log for python2.5

I was able to get the test running using unittest(2) discovery.

I get the same failure for all Python implementations:

======================================================================
FAIL: test_char_null (test_stream.HTMLInputStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/portage/dev-python/html5lib-0.95-r1/work/html5lib-0.95-python2_5/lib/html5lib/tests/test_stream.py", line 18, in test_char_null
    self.assertEquals(stream.char(), u'\ufffd')
AssertionError: u'\x00' != u'\ufffd'

----------------------------------------------------------------------
Comment 1 Patrick Lauer gentoo-dev 2013-03-18 06:08:58 UTC
>>> Source compiled.
 * python2_7: running distutils-r1_run_phase python_test
........Not implemented: <option>s without a value= attribute
.Not implemented: <option>s without a value= attribute
...Not implemented: <option>s without a value= attribute
.Not implemented: <option>s without a value= attribute
.......................F...................
======================================================================
FAIL: test_char_null (test_stream.HTMLInputStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/html5lib-0.95-r1/work/html5lib-0.95-python2_7/lib/html5lib/tests/test_stream.py", line 18, in test_char_null
    self.assertEquals(stream.char(), u'\ufffd')
AssertionError: u'\x00' != u'\ufffd'
- 
+ \ufffd


----------------------------------------------------------------------
Ran 56 tests in 0.064s

FAILED (failures=1)
 * ERROR: dev-python/html5lib-0.95-r1 failed (test phase):
 *   Tests fail with python2.7


Same for me
Comment 2 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2013-06-30 17:43:18 UTC
I get one error and one failure. I tried all versions of dev-python/beautifulsoup:python-2

 * python2_7: running distutils-r1_run_phase python_test
.......................Not implemented: <option>s without a value= attribute
.Not implemented: <option>s without a value= attribute
...Not implemented: <option>s without a value= attribute
.Not implemented: <option>s without a value= attribute
......E..F.....................
======================================================================
ERROR: test_all_tokens (test_treewalkers.TokenTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_treewalkers.py", line 262, in test_all_tokens
    p = html5parser.HTMLParser(tree = treeCls["builder"])
  File "/var/tmp/portage/dev-python/html5lib-0.95-r1/work/html5lib-0.95-python2_7/lib/html5lib/html5parser.py", line 95, in __init__
    self.tree = tree(namespaceHTMLElements)
  File "/var/tmp/portage/dev-python/html5lib-0.95-r1/work/html5lib-0.95-python2_7/lib/html5lib/treebuilders/soup.py", line 149, in __init__
    warnings.warn("BeautifulSoup cannot represent elements in any namespace", DataLossWarning)
DataLossWarning: BeautifulSoup cannot represent elements in any namespace

======================================================================
FAIL: test_char_null (test_stream.HTMLInputStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_stream.py", line 18, in test_char_null
    self.assertEquals(stream.char(), u'\ufffd')
AssertionError: u'\x00' != u'\ufffd'
- 
+ \ufffd


----------------------------------------------------------------------
Ran 59 tests in 0.056s

FAILED (failures=1, errors=1)
Comment 3 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2013-06-30 17:47:10 UTC
dev-python/html5lib-1.0_beta1 passes all tests although it looks kinda suspicious:

Ran 25593 tests in 65.367s

OK
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2016-01-15 08:25:12 UTC
Sould be resolved with current versions