Agustin Lobo wrote:
> Hi!
> After installing (python setup.py install), I run the tests and get
> the following. What should I do?

When looking at what failed, you'll notice that the failure is forced
(something like "assertTrue(False)" is bound to fail) and that a short
explanation as a comment is found behind that statement.

The documentation is otherwise referring to known failing.

Finally, starting several times the tests from one Python session is not 
recommended (this is linked to the current impossibility to end and 
restart R within the same Python process).

If your projects can be done without numpy arrays of unicode characters, 
and without ending and starting R again within the same process, you can 
  proceed safely.


L.


> Thanks
> Agus
> 
> # python
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import rpy2.tests
>  >>> import unittest
>  >>> tr = unittest.TextTestRunner(verbosity = 1)
>  >>> suite = rpy2.tests.suite()
>  >>> tr.run(suite)
> .......................Error in .Primitive("[")(0:10, list("a", "b", 
> "c")) :
>  invalid subscript type 'list'
> ..........................................F.......................F.....Loading
>  
> required package: splines
> .....................Error in function (x)  : object 'y' not found
> ...Error in .Primitive("sum")(c("a", "b", "c", "d", "e", "f", "g", "h", 
> "i",  :
>  invalid 'type' (character) of argument
> .......F............................................
> ======================================================================
> FAIL: testVectorUnicodeCharacter 
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/tests/testNumpyConversions.py",
>  
> line 54, in testVectorUnicodeCharacter
>    self.assertTrue(False) # arrays of unicode characters causing segfault
> AssertionError
> 
> ======================================================================
> FAIL: testNewWithoutInit 
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpVector.py",
>  
> line 43, in testNewWithoutInit
>    self.assertTrue(False) # worked when tested, but calling endEmbeddedR 
> causes trouble
> AssertionError
> 
> ======================================================================
> FAIL: testCallErrorWhenEndedR 
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py",
>  
> line 122, in testCallErrorWhenEndedR
>    self.assertTrue(False) # worked when tested, but calling endEmbeddedR 
> causes trouble
> AssertionError
> 
> ----------------------------------------------------------------------
> Ran 171 tests in 0.849s
> 
> FAILED (failures=3)
> <unittest._TextTestResult run=171 errors=0 failures=3>
>  >>> tr.run(suite)
> .......................Error in .Primitive("[")(0:10, list("a", "b", 
> "c")) :
>  invalid subscript type 'list'
> ..........................................F.......................F.....F.F..................F..Error
>  
> in .Primitive("sum")(c("a", "b", "c", "d", "e", "f", "g", "h", "i",  :
>  invalid 'type' (character) of argument
> .......F............................................
> ======================================================================
> FAIL: testVectorUnicodeCharacter 
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/robjects/tests/testNumpyConversions.py",
>  
> line 54, in testVectorUnicodeCharacter
>    self.assertTrue(False) # arrays of unicode characters causing segfault
> AssertionError
> 
> ======================================================================
> FAIL: testNewWithoutInit 
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpVector.py",
>  
> line 43, in testNewWithoutInit
>    self.assertTrue(False) # worked when tested, but calling endEmbeddedR 
> causes trouble
> AssertionError
> 
> ======================================================================
> FAIL: testGet 
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpEnvironment.py",
>  
> line 39, in testGet
>    self.assertRaises(LookupError, rinterface.globalEnv.get, "survfit")
> AssertionError: LookupError not raised
> 
> ======================================================================
> FAIL: testGet_functionOnly 
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpEnvironment.py",
>  
> line 57, in testGet_functionOnly
>    self.assertEquals(rinterface.CLOSXP, hist.typeof)
> AssertionError: 3 != 16
> 
> ======================================================================
> FAIL: testClosureEnv 
> (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_SexpClosure.py",
>  
> line 28, in testClosureEnv
>    self.assertRaises(rinterface.RRuntimeError, fun, vec)
> AssertionError: RRuntimeError not raised
> 
> ======================================================================
> FAIL: testCallErrorWhenEndedR 
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File 
> "/usr/local/lib/python2.6/dist-packages/rpy2/rinterface/tests/test_EmbeddedR.py",
>  
> line 122, in testCallErrorWhenEndedR
>    self.assertTrue(False) # worked when tested, but calling endEmbeddedR 
> causes trouble
> AssertionError
> 
> ----------------------------------------------------------------------
> Ran 171 tests in 0.132s
> 
> FAILED (failures=6)
> <unittest._TextTestResult run=171 errors=0 failures=6>
>  >>>
> 
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize  
> details at: http://p.sf.net/sfu/Challenge
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to