Revision: 369 http://rpy.svn.sourceforge.net/rpy/?rev=369&view=rev Author: warnes Date: 2007-11-13 07:35:33 -0800 (Tue, 13 Nov 2007)
Log Message: ----------- Numeric.Character isn't handled (yet?), so modify test appropriately Modified Paths: -------------- trunk/rpy/tests/test_numeric.py Modified: trunk/rpy/tests/test_numeric.py =================================================================== --- trunk/rpy/tests/test_numeric.py 2007-11-13 15:28:04 UTC (rev 368) +++ trunk/rpy/tests/test_numeric.py 2007-11-13 15:35:33 UTC (rev 369) @@ -275,21 +275,23 @@ if(ArrayLib=='NumPy'): a = array( ['A', 'B', 'C'], character ) + self.failUnless( r.c(a[0])=='A' ) else: + # RPy does not handle translation oc Numeric.Character objects a = array( ['A', 'B', 'C'], Character ) + self.failUnlessRaises( RPyTypeConversionException, lambda:r.c(a[0])=='A' ) - self.failUnless( r.c(a[0])=='A' ) - def testStringScalar(self): if(ArrayLib=='NumPy'): a = array( ['ABCDEFHIJKLM', 'B', 'C C C'], 'S10' ) - else: # not available on Numeric + self.failUnless( r.c(a[0])=='ABCDEFHIJK' ) + else: + # String class not available on Numeric print "String arrays not supported by Numeric, skipping" return - self.failUnless( r.c(a[0])=='ABCDEFHIJK' ) def testObjScalar(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list