From: Samuele P. <ped...@bl...> - 2004-04-28 18:07:52
|
At 18:49 28.04.2004 +0200, Xavier Noria wrote: >I am doing some toy trials to get PyUnit to work following what's >explained in O'Reilly's book and they fail giving this error: > >fxn@conway:~/prj/simweb/simma/bin% jython runtests.py >Traceback (innermost last): > File "runtests.py", line 18, in ? > File "/Users/fxn/jython-2.1/Lib/unittest.py", line 493, in makeSuite > File "/Users/fxn/jython-2.1/Lib/unittest.py", line 396, in > loadTestsFromTestCase > File "/Users/fxn/jython-2.1/Lib/unittest.py", line 465, in getTestCaseNames >AttributeError: module 'GuiManagerTest' has no attribute '__bases__' seems some case of using import GuiManagerTest # gets the module instead of from GuiManagerTest import GuiManagerTest # gets the class inside the module or something like that >GuiManagerTest is a subclass of unittest.TestCase and I am using >unittest.makeSuite(GuiManagerTest) to build the test suite. > >I googled and searched the list archives without luck, any ideas? > >-- fxn > > > >------------------------------------------------------- >This SF.Net email is sponsored by: Oracle 10g >Get certified on the hottest thing ever to hit the market... Oracle 10g. >Take an Oracle 10g class now, and we'll give you the exam FREE. >http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >_______________________________________________ >Jython-users mailing list >Jyt...@li... >https://lists.sourceforge.net/lists/listinfo/jython-users |