[IronPython] Error during unittest initialization

Dino Viehland dinov at exchange.microsoft.com
Tue Feb 14 05:21:37 CET 2006


Soon indeed! We've got it fixed for the beta 3 release.

Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Monday, February 13, 2006 8:00 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Error during unittest initialization

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
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list