classification
Title: test_site failure when .local/lib/pythonX.Y/site-packages hasn't been created yet
Type: behavior Stage: needs patch
Components: Tests Versions: Python 3.2, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: pitrou, tarek (2)
Priority: normal Keywords

Created on 2009-11-08 00:27 by pitrou, last changed 2009-11-08 00:51 by pitrou.

Messages (2)
msg95031 - (view) Author: Antoine Pitrou (pitrou) Date: 2009-11-08 00:27
On that buildbot, /var/lib/buildbot is a symlink to /home/buildbot and I
get the following failure:

======================================================================
FAIL: test_s_option (test.test_site.HelperFunctionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/buildbot/cpython-ucs2/3.x.pitrou-ubuntu/build/Lib/test/test_site.py",
line 107, in test_s_option
    self.assertIn(usersite, sys.path)
AssertionError: '/var/lib/buildbot/.local/lib/python3.2/site-packages'
not found in ['/usr/local/lib/python32.zip',
'/home/buildbot/cpython-ucs2/3.x.pitrou-ubuntu/build/Lib',
'/home/buildbot/cpython-ucs2/3.x.pitrou-ubuntu/build/Lib/plat-linux2',
'/home/buildbot/cpython-ucs2/3.x.pitrou-ubuntu/build/Modules',
'/home/buildbot/cpython-ucs2/3.x.pitrou-ubuntu/build/build/lib.linux-x86_64-3.2-pydebug']

----------------------------------------------------------------------
msg95032 - (view) Author: Antoine Pitrou (pitrou) Date: 2009-11-08 00:28
Well, I'm not sure the symlink is actually the problem. Apparently the
".local" directory hadn't been created when the first test run.
History
Date User Action Args
2009-11-08 00:51:38pitrousettitle: test_site failure when Python gets installed along a symbolic link -> test_site failure when .local/lib/pythonX.Y/site-packages hasn't been created yet
2009-11-08 00:28:25pitrousetmessages: + msg95032
2009-11-08 00:27:12pitroucreate