Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299001 - dev-python/mechanize-0.2.1 fails tests with Python 2.7
Summary: dev-python/mechanize-0.2.1 fails tests with Python 2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.7
  Show dependency tree
 
Reported: 2009-12-30 17:31 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2010-08-17 18:31 UTC (History)
1 user (show)

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


Attachments
mechanize-0.1.11:20091230-172825.log (mechanize-0.1.11:20091230-172825.log,6.09 KB, text/plain)
2009-12-30 17:32 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details
mechanize-0.1.11:20100103-023125.log (mechanize-0.1.11:20100103-023125.log,6.22 KB, text/plain)
2010-01-03 02:33 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-30 17:31:30 UTC
dev-python/mechanize-0.1.11 fails tests with Python 2.7
It tries to use private unittest._TextTestResult which has been renamed to unittest.runner._TextTestResult.

 * Testing of dev-python/mechanize-0.1.11 with Python 2.7...                                       
Traceback (most recent call last):                                                                 
  File "test.py", line 66, in <module>                                                             
    import testprogram                                                                             
  File "test-tools/testprogram.py", line 13, in <module>                                           
    from unittest import defaultTestLoader, TextTestRunner, TestSuite, TestCase, \
ImportError: cannot import name _TextTestResult
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-30 17:32:18 UTC
Created attachment 214639 [details]
mechanize-0.1.11:20091230-172825.log
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-03 02:32:53 UTC
I have committed that patch, which fixes problem with _TextTestResult, but 1 unittest fails due to different (better) exception message in Python 2.7.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-03 02:33:47 UTC
Created attachment 214977 [details]
mechanize-0.1.11:20100103-023125.log
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-05-25 10:59:35 UTC
Do newer versions of mechanize work on 2.7?
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-08-17 18:31:27 UTC
Fixed by upstream in dev-python/mechanize-0.2.2.