[TransWarp] Test suite fails

Vineet Jain vinjvinj at yahoo.com
Wed May 14 01:43:59 EDT 2003


I got the peak unit tests to complete. It's strange though since they
don't output anything and it's difficult to figure out if they complete
successfully. 

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Vineet Jain>python
c:\programming\python22\lib\unittes
t.py peak.tests.test_suite

C:\Documents and Settings\Vineet Jain>python 2.2.2
python: can't open file '2.2.2'

C:\Documents and Settings\Vineet Jain>python
ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>>
>>> quit
'Use Ctrl-Z plus Return to exit.'
>>> exit
'Use Ctrl-Z plus Return to exit.'
>>> ^Z^Z^Z


C:\Documents and Settings\Vineet Jain>
C:\Documents and Settings\Vineet Jain>
C:\Documents and Settings\Vineet Jain>python
c:\win32app\python22\lib\unittest.p
y peak.tests.test_suite

C:\Documents and Settings\Vineet Jain>cd c:\programming

C:\programming>dir
 Volume in drive C has no label.
 Volume Serial Number is C804-1E48

 Directory of C:\programming

05/13/2003  04:21 PM    <DIR>          .
05/13/2003  04:21 PM    <DIR>          ..
04/25/2003  01:08 PM    <DIR>          book
05/06/2003  01:34 PM    <DIR>          Cheetah-0.9.15
04/25/2003  01:08 PM    <DIR>          cvs
04/25/2003  01:08 PM    <DIR>          diveintopython
05/13/2003  03:57 PM    <DIR>          eswsap
04/25/2003  01:08 PM    <DIR>          jobboard
04/25/2003  01:09 PM    <DIR>          MinGW
04/25/2003  01:10 PM    <DIR>          ModelingCore-0.9-pre-4
05/12/2003  10:52 PM    <DIR>          myxml-0.7
04/25/2003  01:10 PM    <DIR>          NotificationFramework-0.4
04/25/2003  01:10 PM    <DIR>          orm-0.10
05/13/2003  01:40 PM    <DIR>          PEAK-0.5a1
05/12/2003  12:46 PM    <DIR>          psyco-1.0
05/12/2003  02:02 PM    <DIR>          PyDO-1.2
05/10/2003  08:35 AM    <DIR>          SimpleTAL
04/26/2003  12:41 AM    <DIR>          spark-0.6.1
03/10/2000  12:39 PM            20,480 SQLDict-1.0.0.tar
05/10/2003  08:35 AM    <DIR>          TALAggregator
05/06/2003  01:31 PM    <DIR>          Webware
04/26/2003  12:48 AM    <DIR>          Zope3
04/26/2003  12:51 AM    <DIR>          ZopeX3-0.0m2
05/02/2003  01:15 PM    <DIR>          zwiki
               1 File(s)         20,480 bytes
              23 Dir(s)   3,593,486,336 bytes free

C:\programming>cd python22
The system cannot find the path specified.

C:\programming>cd eswap
The system cannot find the path specified.

C:\programming>cd eswap
The system cannot find the path specified.

C:\programming>cd eswsap

C:\programming >python c:\win32app\python22\lib\unittest.py
peak.tests.tes
t_suite

C:\programming  python c:\win32app\python22\lib\unittest.py
peak.tests.tes
t_suite

The problem for the unit tests was that I had two python installations.
When I removed one the unit tests complete but don't output anything. 

I'll test on regular python22 later today. If that does not work I'll
try to recompile from source. The contact application still crashes the
interpreter.

This works:

from peak.api import model

class Contact :
	i = 2
But this crashes:

from peak.api import model

class Contact(model.Element):
	i = 2

Very strange. 

Vineet
 
-----Original Message-----
From: Phillip J. Eby [mailto:pje at telecommunity.com] 
Sent: Tuesday, May 13, 2003 6:52 PM
To: Vineet Jain; transwarp at eby-sarna.com
Subject: RE: [TransWarp] Test suite fails

At 04:17 PM 5/13/03 -0700, Vineet Jain wrote:
>Sorry about the html. I'm not exactly sure how it got there. (It's
>amazing what cut and paste can do).
>
>I'm using activepython distribution:
>
>ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
>Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
>
>The peak unit tests also caused the interpreter to crash.

Hm.  That's seriously weird.  I've never used ActivePython, though.
I've 
only used the www.python.org downloads and Cygwin Python.  Maybe 
MinGW-built DLL's aren't compatible with it.  Have you tried building
from 
source?




More information about the PEAK mailing list