Re: [Zope-dev] Re: New testrunner on the Zope 2 trunk.

2005-10-27 Thread Jim Fulton

Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:


Weird. I can't reproduce this.  Is anyone else seeing this?



For the benefit of those playing along at home:

Jim and I discovered this evening that we were running on
mostly-identical platforms (Ubuntu Breezy 5.10, Python 2.3.5 compiled
from source).

The only difference we could find was that I had rebuilt my Pythnon
using GCC 4.0, while Jim's was one built under GCC 3.3.

Go figure,


Sigh.

I rebuilt Python 2.3.5:

[EMAIL PROTECTED]:~/p/z2/2$ /usr/local/python/2.3.5b/bin/python
Python 2.3.5 (#1, Oct 27 2005, 10:22:20)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)] on linux2
Type help, copyright, credits or license for more information.


I don't get a test failure with this Python:

cd ~/p/z2/2/
/usr/local/python/2.3.5b/bin/python test.py -szope.testing
Running tests at level 1
Running unit tests:
  Running:
..
...
  Ran 89 tests with 0 failures and 0 errors in 32.003 seconds.

Compilation finished at Thu Oct 27 11:04:40

Is anyone else getting this test failure?

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: New testrunner on the Zope 2 trunk.

2005-10-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:

 Sigh.
 
 I rebuilt Python 2.3.5:
 
 [EMAIL PROTECTED]:~/p/z2/2$ /usr/local/python/2.3.5b/bin/python
 Python 2.3.5 (#1, Oct 27 2005, 10:22:20)
 [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)] on linux2
 Type help, copyright, credits or license for more information.

 
 I don't get a test failure with this Python:
 
 cd ~/p/z2/2/
 /usr/local/python/2.3.5b/bin/python test.py -szope.testing
 Running tests at level 1
 Running unit tests:
   Running:
 ..
 ...
   Ran 89 tests with 0 failures and 0 errors in 32.003 seconds.
 
 Compilation finished at Thu Oct 27 11:04:40
 
 Is anyone else getting this test failure?

Just to note that the tests aren't running cleanly on Stefan Holek's
box, either (but they fail differently):

 http://mail.zope.org/pipermail/zope-tests/2005-October/003421.html

 http://mail.zope.org/pipermail/zope-tests/2005-October/003422.html


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDYPj0+gerLs4ltQ4RAv6bAJ4jZvj3unZ2mupaMKFVK0886+iuvgCgvi3I
ka6+lOBnQ9l34slY+oD7kR8=
=b/x2
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: New testrunner on the Zope 2 trunk.

2005-10-27 Thread Jim Fulton

Tres Seaver wrote:
...


Just to note that the tests aren't running cleanly on Stefan Holek's
box, either (but they fail differently):

 http://mail.zope.org/pipermail/zope-tests/2005-October/003421.html

 http://mail.zope.org/pipermail/zope-tests/2005-October/003422.html


These are not failures.  They are also not complete output.

I'm hoping that Stefan will look at this.

We also plan to add zope 2 to the buildbot config.

It would be nice is someone would address the deprecation
warning by getting rid of the whrandom reference. :)

Jim


--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: New testrunner on the Zope 2 trunk.

2005-10-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:
 
 I just checked in a new test runner on the trunk.  It is mostly backward
 compatible with the old test runner.  You can get help on the test
 runner by running
 it with -h.  There is more extensive documentation in
 lib/python/zope/testing/testrunner.txt.
 
 Note that the new test runner complains if test_suite functions don't
 return
 test suites.  There is a zope.i18n test suite that it currently
 complains about.
 Unfortunately, I can't just fix this because it is an svn:external and
 it will be too painful to create a tag with the necessary fix in the short
 term.  I expect we will be integrating a newer version of Zope 3 later
 in the
 week and we'll take care of this then.

I'm seeing test failures out of the self-tests for the new testrunner:


Failure in test
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt
Failed doctest test for testrunner-coverage.txt
  File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 0

- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 20, in testrunner-coverage.txt
Failed example:
testrunner.run(defaults)
Expected:
Running unit tests:
...
lines   cov%   module   (path)
... testrunner.py)
...
Got:
Running unit tests:
  Ran 192 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer1 tests:
  Set up samplelayers.Layer1 in N.NNN seconds.
  Ran 9 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer11 tests:
  Set up samplelayers.Layer11 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer111 tests:
  Set up samplelayers.Layerx in N.NNN seconds.
  Set up samplelayers.Layer111 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer112 tests:
  Tear down samplelayers.Layer111 in N.NNN seconds.
  Set up samplelayers.Layer112 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer12 tests:
  Tear down samplelayers.Layer112 in N.NNN seconds.
  Tear down samplelayers.Layerx in N.NNN seconds.
  Tear down samplelayers.Layer11 in N.NNN seconds.
  Set up samplelayers.Layer12 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer121 tests:
  Set up samplelayers.Layer121 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer122 tests:
  Tear down samplelayers.Layer121 in N.NNN seconds.
  Set up samplelayers.Layer122 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Tearing down left over layers:
  Tear down samplelayers.Layer122 in N.NNN seconds.
  Tear down samplelayers.Layer12 in N.NNN seconds.
  Tear down samplelayers.Layer1 in N.NNN seconds.
Total: 405 tests, 0 failures, 0 errors
False
- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 30, in testrunner-coverage.txt
Failed example:
os.path.exists('coverage_dir')
Expected:
True
Got:
False
- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 32, in testrunner-coverage.txt
Failed example:
os.listdir('coverage_dir')
Exception raised:
Traceback (most recent call last):
  File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/doctest.py,
line 1256, in __run
compileflags, 1) in test.globs
  File doctest testrunner-coverage.txt[7], line 1, in ?
OSError: [Errno 2] No such file or directory: 'coverage_dir'
- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 38, in testrunner-coverage.txt
Failed example:
shutil.rmtree('coverage_dir')
Exception raised:
Traceback (most recent call last):
  File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/doctest.py,
line 1256, in __run
compileflags, 1) in test.globs
  File doctest testrunner-coverage.txt[9], line 1, in ?
  File /home/tseaver/projects/Zope-CVS/lib/python2.3/shutil.py,
line 142, in rmtree
raise exc[0], (exc[1][0], exc[1][1] + ' removing '+arg)
OSError: [Errno 2] No such file or directory removing coverage_dir

..
..
..
  Ran 7352 tests with 1 

[Zope-dev] Re: New testrunner on the Zope 2 trunk.

2005-10-26 Thread Jim Fulton


Weird. I can't reproduce this.  Is anyone else seeing this?

Jim

Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:


I just checked in a new test runner on the trunk.  It is mostly backward
compatible with the old test runner.  You can get help on the test
runner by running
it with -h.  There is more extensive documentation in
lib/python/zope/testing/testrunner.txt.

Note that the new test runner complains if test_suite functions don't
return
test suites.  There is a zope.i18n test suite that it currently
complains about.
Unfortunately, I can't just fix this because it is an svn:external and
it will be too painful to create a tag with the necessary fix in the short
term.  I expect we will be integrating a newer version of Zope 3 later
in the
week and we'll take care of this then.



I'm seeing test failures out of the self-tests for the new testrunner:


Failure in test
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt
Failed doctest test for testrunner-coverage.txt
  File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 0

- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 20, in testrunner-coverage.txt
Failed example:
testrunner.run(defaults)
Expected:
Running unit tests:
...
lines   cov%   module   (path)
... testrunner.py)
...
Got:
Running unit tests:
  Ran 192 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer1 tests:
  Set up samplelayers.Layer1 in N.NNN seconds.
  Ran 9 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer11 tests:
  Set up samplelayers.Layer11 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer111 tests:
  Set up samplelayers.Layerx in N.NNN seconds.
  Set up samplelayers.Layer111 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer112 tests:
  Tear down samplelayers.Layer111 in N.NNN seconds.
  Set up samplelayers.Layer112 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer12 tests:
  Tear down samplelayers.Layer112 in N.NNN seconds.
  Tear down samplelayers.Layerx in N.NNN seconds.
  Tear down samplelayers.Layer11 in N.NNN seconds.
  Set up samplelayers.Layer12 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer121 tests:
  Set up samplelayers.Layer121 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Running samplelayers.Layer122 tests:
  Tear down samplelayers.Layer121 in N.NNN seconds.
  Set up samplelayers.Layer122 in N.NNN seconds.
  Ran 34 tests with 0 failures and 0 errors in N.NNN seconds.
Tearing down left over layers:
  Tear down samplelayers.Layer122 in N.NNN seconds.
  Tear down samplelayers.Layer12 in N.NNN seconds.
  Tear down samplelayers.Layer1 in N.NNN seconds.
Total: 405 tests, 0 failures, 0 errors
False
- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 30, in testrunner-coverage.txt
Failed example:
os.path.exists('coverage_dir')
Expected:
True
Got:
False
- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 32, in testrunner-coverage.txt
Failed example:
os.listdir('coverage_dir')
Exception raised:
Traceback (most recent call last):
  File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/doctest.py,
line 1256, in __run
compileflags, 1) in test.globs
  File doctest testrunner-coverage.txt[7], line 1, in ?
OSError: [Errno 2] No such file or directory: 'coverage_dir'
- --
File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/testrunner-coverage.txt,
line 38, in testrunner-coverage.txt
Failed example:
shutil.rmtree('coverage_dir')
Exception raised:
Traceback (most recent call last):
  File
/home/tseaver/projects/Zope-CVS/Zope-SVN-trunk/lib/python/zope/testing/doctest.py,
line 1256, in __run
compileflags, 1) in test.globs
  File doctest testrunner-coverage.txt[9], line 1, in ?
  File /home/tseaver/projects/Zope-CVS/lib/python2.3/shutil.py,
line 142, in rmtree
raise exc[0], (exc[1][0], exc[1][1] + ' removing '+arg)
OSError: [Errno 2] No such file or directory removing coverage_dir

..

[Zope-dev] Re: New testrunner on the Zope 2 trunk.

2005-10-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Fulton wrote:
 
 Weird. I can't reproduce this.  Is anyone else seeing this?

For the benefit of those playing along at home:

Jim and I discovered this evening that we were running on
mostly-identical platforms (Ubuntu Breezy 5.10, Python 2.3.5 compiled
from source).

The only difference we could find was that I had rebuilt my Pythnon
using GCC 4.0, while Jim's was one built under GCC 3.3.

Go figure,


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDYEk7+gerLs4ltQ4RAvy1AKDIg4aoolifM8sKb/SLZkr7VANfyQCgzboL
tIBd+gk++ECvgONcouW7KPA=
=wJEw
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )