[mnet-devel] patch: use twisted.trial for unit tests
Hauke Johannknecht
ash at ash.de
Sun Apr 18 22:34:31 BST 2004
On 18 Apr 2004 zooko at zooko.com wrote:
> One thing it lacks is to make "setup.py test" invoke trial instead of invoking
> unittest.
after merging this, i tried to run:
python setup.py test -s mnetlib/test/test_localblockstore.py
Traceback (most recent call last):
File "setup.py", line 754, in ?
apply(distutils.core.setup, (), setup_args)
File "/usr/local/lib/python2.3/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/local/lib/python2.3/distutils/dist.py", line 907, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.3/distutils/dist.py", line 927, in run_command
cmd_obj.run()
File "setup.py", line 479, in run
runner = unittest.TextTestRunner(verbosity=self.verbosity)
AttributeError: 'module' object has no attribute 'TextTestRunner'
the referenced "unittest" is imported as
from twisted.trial import unittest
i am not sure whether this is supposed to happen, or how to fix it.
--
Hauke Johannknecht Berlin / Germany HJ422-RIPE
Use PGP ! -> lynx -dump http://www.ash.de/ash.asc | pgp -kaf
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list