Revision: 374 http://rpy.svn.sourceforge.net/rpy/?rev=374&view=rev Author: warnes Date: 2007-11-14 19:47:30 -0800 (Wed, 14 Nov 2007)
Log Message: ----------- Change function to_r used in tests to make it more reliable Modified Paths: -------------- trunk/rpy/tests/test_numeric.py Modified: trunk/rpy/tests/test_numeric.py =================================================================== --- trunk/rpy/tests/test_numeric.py 2007-11-15 03:22:18 UTC (rev 373) +++ trunk/rpy/tests/test_numeric.py 2007-11-15 03:47:30 UTC (rev 374) @@ -21,8 +21,15 @@ idx.autoconvert(NO_CONVERSION) def to_r(obj): - r.list.autoconvert(NO_CONVERSION) - return idx(r.list(obj),1) + # For some reason, these two lines stop working after a few + # iterations of `testall.py --loop'. I'm not sure why + # r.list.autoconvert(NO_CONVERSION) + # return idx(r.list(obj),1) + # These three lines accomplish the same thing, but more + # doesn't stop working after a few iterations. + f = r("function(x) x") + f.autoconvert(NO_CONVERSION) + return f(obj) class ArrayTestCase(unittest.TestCase): 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