Revision: 456
          http://rpy.svn.sourceforge.net/rpy/?rev=456&view=rev
Author:   lgautier
Date:     2008-03-22 06:40:18 -0700 (Sat, 22 Mar 2008)

Log Message:
-----------
Wrap initialization of R into a try/except statement

Modified Paths:
--------------
    branches/rpy_nextgen/rpy/rinterface/tests/test_Sexp.py
    branches/rpy_nextgen/rpy/rinterface/tests/test_SexpVector.py

Modified: branches/rpy_nextgen/rpy/rinterface/tests/test_Sexp.py
===================================================================
--- branches/rpy_nextgen/rpy/rinterface/tests/test_Sexp.py      2008-03-22 
13:39:34 UTC (rev 455)
+++ branches/rpy_nextgen/rpy/rinterface/tests/test_Sexp.py      2008-03-22 
13:40:18 UTC (rev 456)
@@ -1,9 +1,13 @@
 import unittest
 import rpy2.rinterface as rinterface
 
-#FIXME: can starting and stopping an embedded R be done several times ?
-rinterface.initEmbeddedR("foo", "--vanilla", "--no-save", "--quiet")
+try:
+    #FIXME: can starting and stopping an embedded R be done several times ?
+    rinterface.initEmbeddedR("foo", "--vanilla", "--no-save", "--quiet")
+except:
+    pass
 
+
 class SexpTestCase(unittest.TestCase):
     #def setUpt(self):
     #    rinterface.initEmbeddedR("foo", "--no-save")

Modified: branches/rpy_nextgen/rpy/rinterface/tests/test_SexpVector.py
===================================================================
--- branches/rpy_nextgen/rpy/rinterface/tests/test_SexpVector.py        
2008-03-22 13:39:34 UTC (rev 455)
+++ branches/rpy_nextgen/rpy/rinterface/tests/test_SexpVector.py        
2008-03-22 13:40:18 UTC (rev 456)
@@ -1,8 +1,11 @@
 import unittest
 import rpy2.rinterface as rinterface
 
-#FIXME: can starting and stopping an embedded R be done several times ?
-rinterface.initEmbeddedR("foo", "--vanilla", "--no-save", "--quiet")
+try:
+    #FIXME: can starting and stopping an embedded R be done several times ?
+    rinterface.initEmbeddedR("foo", "--vanilla", "--no-save", "--quiet")
+except:
+    pass
 
 def floatEqual(x, y, epsilon = 0.00000001):
     return abs(x - y) < epsilon


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to