[pypy-dev] Objects and types in the stdobjspace
Rocco Moretti
roccomoretti at netscape.net
Tue Jun 10 05:53:20 MEST 2003
holger krekel <hpk at trillke.net> wrote:
>Btw, I don't like the duplicated testsupport.py files. I think Rocco already
>suggested to put one version into a fixed place which i agree too.
>pypy.test.support seems like a canonical place.
The one problem with that is if you are sitting
in /norwegian/blue/pypy/interpreter/test, and '/norwegian/blue/' isn't on
your PYTHONPATH, you choke on trying to import pypy.test.support. One of
the main reasons (that I see, at least) for testsupport is that by doing a
relative 'import testsupport', it automagically massages your PYTHONPATH
such that 'from pypy...' imports work. But I agree that it probably should
be pared down to a stub, and it looks like someone (mwh?) has already
started that by moving a bunch of code to testtools.py
My suggestion was to move all the other files for general test support
(unittest_w.py, testtools.py etc) to a single directory, to leave the main
directory and the interpreter directory relatively uncluttered.
>Filename completions
>on "te<tab>" should result in "test_" :-)
Could we rename it 'support_tests.py'?
-Rocco
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge. Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
More information about the pypy-dev
mailing list