[Zope-Coders] Unit testing: Reloading Python modules
Tres Seaver
tseaver@zope.com
Sun, 18 Nov 2001 15:47:34 -0500
I have a couple of questions for the PyUnit savvy among us:
- Why isn't the 'unittestgui' module included in Python2.1?
- Is there anything wrong with Steve Purcell's "import
isolation" strategy, as outlined at:
<http://pyunit.sourceforge.net/notes/reloading.html>
It looks like we should be able to use his RollbackImporter
within utilities/testrunner.py to reduce some of the global
side effect problems.
BTW, I am seeing another weird unittest failure on the head:
======================================================================
FAIL: testExprExplicitDeny (testSecurity.SecurityTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/zope/Zope-head/lib/python/AccessControl/tests/testSecurity.py", line 137, in testExprExplicitDeny
assert 0, 'Did not deny attribute access'
AssertionError: Did not deny attribute access
----------------------------------------------------------------------
Ran 1498 tests in 422.357s
FAILED (failures=1)
I don't see any checkouts within AccessControl recently; anyone
have any clues what this is?
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com