From: David G. <go...@py...> - 2006-03-21 00:37:33
|
[Michael Lauer] > winXP, SP2 etc, > The setup seemed to complete normally, and buildhtml seemed to work > without complaint, but the tests wouldn't run at all, as shown here: > =20 > C:\DevTools\Python24\docutils\test>python alltests.py > Traceback (most recent call last): > File "alltests.py", line 86, in ? > suite =3D suite() > File "alltests.py", line 75, in suite > 'test_', packages=3D1) > File "C:\DevTools\Python24\docutils\test\package_unittest.py", line > 81, in loa > dTestModules > testSuite =3D unittest.TestSuite() > TypeError: __init__() takes at least 2 arguments (1 given) I can't reproduce this. In fact, my research suggests something is wrong= on your system. I suspect you have a non-standard unittest module on your s= earch path. Try this and show us the results: C:...>python >>> import unittest >>> unittest <module 'unittest' from 'X'> What do you get instead of 'X'? >>> help(unittest.TestSuite) Help on class TestSuite in module unittest: class TestSuite(__builtin__.object) | A test suite is a composite test consisting of a number of TestCases.= =2E.. | __init__(self, tests=3D()) Do you see this? If not, show us what you get. --=20 David Goodger <http://python.net/~goodger> |