jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 121 forks source link

test fails, old, in py2.7 #86

Open idella opened 11 years ago

idella commented 11 years ago
 * python2_7: running distutils-r1_run_phase python_test
.............................................................................................................................................................................................F..F.......................................................................ssssssssssssssssssssssssssssssssssss....................s...........................................................................................................................................................................................................................
======================================================================
FAIL: test_get_token (test.test_pullparser.PullParserTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/gen2/TmpDir/portage/dev-python/mechanize-0.2.5-r1/work/mechanize-0.2.5/test/test_pullparser.py", line 78, in test_get_token
    self._test_get_token(pc, tolerant)
  File "/mnt/gen2/TmpDir/portage/dev-python/mechanize-0.2.5-r1/work/mechanize-0.2.5/test/test_pullparser.py", line 117, in _test_get_token
    self.assertEqual(p.get_token(), ("decl", "rheum", None))
AssertionError: Token('comment', 'rheum', None) != ('decl', 'rheum', None)

======================================================================
FAIL: test_tokens (test.test_pullparser.PullParserTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/gen2/TmpDir/portage/dev-python/mechanize-0.2.5-r1/work/mechanize-0.2.5/test/test_pullparser.py", line 274, in test_tokens
    self._test_tokens(pc, tolerant)
  File "/mnt/gen2/TmpDir/portage/dev-python/mechanize-0.2.5-r1/work/mechanize-0.2.5/test/test_pullparser.py", line 290, in _test_tokens
    self.assertEquals(token.type, expected_token_types[i])
AssertionError: 'comment' != 'decl'

----------------------------------------------------------------------
Ran 540 tests in 5.106s

FAILED (failures=2, skipped=37)

Just read https://bugs.gentoo.org/show_bug.cgi?id=420051, its already long since been all there

oh and https://github.com/jjlee/mechanize/issues/66