Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162057 - dev-lang/python fails tests in test_expanduser
Summary: dev-lang/python fails tests in test_expanduser
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-14 14:56 UTC by Matti Bickel (RETIRED)
Modified: 2007-05-07 07:58 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 Matti Bickel (RETIRED) gentoo-dev 2007-01-14 14:56:36 UTC
Here's what i get:
test_time (test.test_posixpath.PosixPathTest) ... ok

======================================================================
FAIL: test_expanduser (test.test_posixpath.PosixPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/paludis/dev-lang/python-2.4.3-r4/work/Python-2.4.3/Lib/test/test_posixpath.py", line 353, in test_expanduser
    posixpath.expanduser("~/")
AssertionError: '/var/tmp/paludis/dev-lang/python-2.4.3-r4/temp//' != '/var/tmp/paludis/dev-lang/python-2.4.3-r4/temp/'

----------------------------------------------------------------------
Ran 27 tests in 0.246s

FAILED (failures=1)
test test_posixpath failed -- Traceback (most recent call last):
  File "/var/tmp/paludis/dev-lang/python-2.4.3-r4/work/Python-2.4.3/Lib/test/test_posixpath.py", line 353, in test_expanduser
    posixpath.expanduser("~/")
AssertionError: '/var/tmp/paludis/dev-lang/python-2.4.3-r4/temp//' != '/var/tmp/paludis/dev-lang/python-2.4.3-r4/temp/'

make: *** [test] Error 1

!!! ERROR in dev-lang/python-2.4.3-r4:
!!! In src_test at line 309
!!! make test failed

This assertion obviously goes to far, '//' and '/' are the same, even if not lexically. Please disable or fix the test, thanks :)
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2007-01-14 20:34:01 UTC
Actually saw this before (bug 150729) but missed something while debugging it. Reproduced by running HOME=/spork/ python -m test.test_posixpath, filed upstream bug http://sourceforge.net/tracker/index.php?func=detail&aid=1635353&group_id=5470&atid=105470,  the test will either be disabled or fixed in the next revbump which will happen Real Soon Now (you can work around it if you can tell paludis to set $HOME to something that does not end in a /).
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-04-27 17:16:00 UTC
Any news?
Comment 3 Bryan Østergaard (RETIRED) gentoo-dev 2007-05-07 07:58:32 UTC
I can't reproduce this with 2.4.4.