[IronPython] Error during unittest initialization
Sanghyeon Seo
sanxiyn at gmail.com
Tue Feb 14 04:59:45 CET 2006
2006/1/30, Greg Lee <glee at pharsight.com>:
> Using IronPython 1.0.2216 (Beta) on .NET 2.0.50727.42 to run this:
>
> (snip)
>
> 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)
This is exactly the same bug I reported earlier:
http://lists.ironpython.com/pipermail/users-ironpython.com/2006-February/001721.html
One workaround is to edit unittest.py to change "cmp" to
"staticmethod(cmp)" where appropriate. Hopefully this bug will be
resolved soon...
Seo Sanghyeon
More information about the Ironpython-users
mailing list