[C++-sig] Unit test script problem with boost

John Slater john_slater33 at yahoo.com
Thu Nov 6 06:23:02 CET 2003


Hi,
 
I have a problem using unittest script with Boost.
 
I have a class as Command which is exposed to python through Boost.
If I run a failUnlessRaises() from python as below 
 
def testFunctionBounds(self):
		            command = Command()
            self.failUnlessRaises(ValueError, command.Command, -1)

This gives error saying
 
apply(callableObj, args, kwargs)
TypeError: Bad argument type for built-in operation.
 
This works fine if the Class is in python.
 
Looking for a suggetion from ur end.
 
Thanks & Regards,
John Slater
 


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031105/a226a9d5/attachment.htm>


More information about the Cplusplus-sig mailing list