Re: Re: Re: rewrote tests in unittest/ to python unittests

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Joerg Beyer wrote:

> > > > > I included the unittest.py (since Bram works with older
> > > > > python releases that have it not includes - todays 
> > > > > python releases have). It originally lives on:
> > > > > pyunit.sourceforge.net
> > > > 
> > > > I'm using Python 2.2, which does include the module.  Since the module
> > > 
> > > oh, has changed recently? 
> 
> have you switched recently the python version, that you use 
> to develop aap - sorry for the fuzzy question.

I'm already using 2.2 for quite a while.  I'll probably install 2.3
soon.  But I also run 1.5.2 now and then to check that Aap still works
with it.

> > Hmm, making an installable package recipe for this wouldn't be a bad
> > idea.  If someone makes this I'll add it to the web site.  You can find
> > examples here: http://www.a-a-p.org/packages/
> 
> actually this wget command should be enough:
> 
> wget -O unittest.py "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/pyunit/pyunit/unittest.py?rev=HEAD"
> 
> it downloads the current unittest.py from sf.net (via the Webinterface of the CVS).

Unfortunately, we can't rely on "wget" to be available.  We _can_ use a
simple Aap recipe:

    all:
        :copy http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/pyunit/pyunit/unittest.py?rev=HEAD unittest.py

Or call the internal function for this directly.

Would it be acceptable that running the tests installs unittest.py
automatically?  We should probably ask the user if he really wants to do
this.  That's very much what the package installer already handles.

-- 
Well, you come from nothing, you go back to nothing...  What have you
lost?  Nothing!
				-- Monty Python: The life of Brian

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.