[IronPython] Error during unittest initialization

Greg Lee glee at pharsight.com
Sun Jan 29 19:50:56 CET 2006


Using IronPython 1.0.2216 (Beta) on .NET 2.0.50727.42 to run this:

import unittest

class TestConfigparser(unittest.TestCase):

   def testtokenize(self):
       pass
   def testline(self):
       pass

if __name__ == "__main__":
    unittest.main()
       
Produces:

Traceback (most recent call last):
  File c:\box\test\testdmxmetadataeditor\foo.py, line 11, in Initialize
  File unittest, line unknown, in __init__$f196
  File c:\python24\lib\unittest.py, line 758, in __init__$f196
  File c:\python24\lib\unittest.py, line 787, in parseArgs$f198
  File c:\python24\lib\unittest.py, line 507, in loadTestsFromModule$f173
  File c:\python24\lib\unittest.py, line 495, in loadTestsFromTestCase$f172
  File c:\python24\lib\unittest.py, line 570, in getTestCaseNames$f176
TypeError: cmp() takes exactly 2 argument (3 given)

Python library is from python2.4.
No error occurs if only one test is include, i.e. testline is deleted from the  TestCase.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060129/cc656ec7/attachment.html>


More information about the Ironpython-users mailing list