| Summary: | dev-python/html5lib: fails tests with all Python implementations | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | jlec, nikoli |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://bugs.gentoo.org/show_bug.cgi?id=461346 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 475342 | ||
| Attachments: | Build log for python2.5 | ||
>>> 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
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)
dev-python/html5lib-1.0_beta1 passes all tests although it looks kinda suspicious: Ran 25593 tests in 65.367s OK Sould be resolved with current versions |
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' ----------------------------------------------------------------------