Bugs item #1674555, was opened at 2007-03-06 01:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1674555&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Theodoros V. Kalamatianos (nyb)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.5 testsuite sys.path contains system dirs

Initial Comment:
While trying to debug a testsuite crash, I discovered that a faulty module from 
the system wide directories was being picked up. The module in question was 
sgmlop.so, which was being imported by Lib/xmlrpclib.py. (BTW isn't it 
considered bad form for a module within the Python distribution to load a third 
party module?)

In my opinion, the main issue here is that while testing a Python build, no 
out-of-tree modules should be able to be imported in any case, in order to 
avoid pollution of the testing environment. Yet AFAICT, there is no place where 
the sys.path is manipulated to remove the out-of-tree directories. I believe 
that the proper thing to do would be to allow only the build tree module 
directories in the search path.

Any comments/patches would be appreciated.


Best Regards,

Theodoros Kalamatianos


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1674555&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to