From inspecting the output below, this appears to concern a MSWindows
installation, but I am not able to guess the version number for Python
(except that it's < 2.6), rpy2, and R.
A number of features are advertised as working on all but one OS, and
you are using that one, I think.
Regarding the varying number of failed tests, if this is happening in
the same session that might be a side effect / bug triggered by
unittest. Things should work better from a fresh Python session.
L.
Gary Smith wrote:
>
>
> After rpy2 installation, the unit test for verifying the installation
> fails. The first time I run unittest with a fresh copy of Python, I get
> 8 failures. The second time, 11 failures. Also, there is no /r/ object
> after importing rpy2. The results are extensive, but suggest nothing to
> me.
>
> Here’s the unittest script to verify the rpy installation:
>
>
>
> import rpy2.tests
>
> import unittest
>
> tr = unittest.TextTestRunner(verbosity = 2)
>
> suite = rpy2.tests.suite()
>
> tr.run(suite)
>
>
>
> Results:
>
>
>
> testDo_slot (rpy2.robjects.tests.testRObject.RObjectTestCase) ... ok
>
> testNew (rpy2.robjects.tests.testRObject.RObjectTestCase) ... ok
>
> testR_repr (rpy2.robjects.tests.testRObject.RObjectTestCase) ... ok
>
> testRclass (rpy2.robjects.tests.testRObject.RObjectTestCase) ... ok
>
> testStr (rpy2.robjects.tests.testRObject.RObjectTestCase) ... ok
>
> testAddOperators (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testAssign (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testGetItem (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testGetItemOutOfBounds (rpy2.robjects.tests.testRVector.RVectorTestCase)
> ... ok
>
> testGetNames (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testNew (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testNewBoolVector (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testNewFloatVector (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testNewIntVector (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testNewStrVector (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testRAddOperators (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testRMultOperators (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testRPowerOperator (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testSetItem (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testSetItemOutOfBounds (rpy2.robjects.tests.testRVector.RVectorTestCase)
> ... ok
>
> testSetNames (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testSubsetByIndex (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testSubsetByName (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testSubsetIndexError (rpy2.robjects.tests.testRVector.RVectorTestCase)
> ... ok
>
> testSubsetList (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testSubsetRecyclingRule
> (rpy2.robjects.tests.testRVector.RVectorTestCase) ... ok
>
> testDim (rpy2.robjects.tests.testRArray.RArrayTestCase) ... ok
>
> testGetnames (rpy2.robjects.tests.testRArray.RArrayTestCase) ... ok
>
> testNew (rpy2.robjects.tests.testRArray.RArrayTestCase) ... ok
>
> testDim (rpy2.robjects.tests.testRDataFrame.RDataFrameTestCase) ... ok
>
> testNew (rpy2.robjects.tests.testRDataFrame.RDataFrameTestCase) ... ok
>
> testNewFromRObject
> (rpy2.robjects.tests.testRDataFrame.RDataFrameTestCase) ... ok
>
> testCall (rpy2.robjects.tests.testRFunction.RFunctionTestCase) ... ok
>
> testCallClosureWithRObject
> (rpy2.robjects.tests.testRFunction.RFunctionTestCase) ... ok
>
> testCallWithSexp (rpy2.robjects.tests.testRFunction.RFunctionTestCase)
> ... ok
>
> testNew (rpy2.robjects.tests.testRFunction.RFunctionTestCase) ... ok
>
> testNew (rpy2.robjects.tests.testREnvironment.REnvironmentTestCase) ... ok
>
> testNewValueError
> (rpy2.robjects.tests.testREnvironment.REnvironmentTestCase) ... ok
>
> testSetItem (rpy2.robjects.tests.testREnvironment.REnvironmentTestCase)
> ... ok
>
> testGetenvironment (rpy2.robjects.tests.testRFormula.RFormulaTestCase)
> ... ok
>
> testNew (rpy2.robjects.tests.testRFormula.RFormulaTestCase) ... ok
>
> testSetenvironment (rpy2.robjects.tests.testRFormula.RFormulaTestCase)
> ... ok
>
> testEval (rpy2.robjects.tests.testRobjects.RInstanceTestCase) ... ok
>
> testGetItem (rpy2.robjects.tests.testRobjects.RInstanceTestCase) ... ok
>
> testMapperPy2R_boolean
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperPy2R_complex
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperPy2R_float (rpy2.robjects.tests.testRobjects.MappingTestCase)
> ... ok
>
> testMapperPy2R_integer
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperPy2R_str (rpy2.robjects.tests.testRobjects.MappingTestCase)
> ... ok
>
> testMapperPy2R_unicode
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperR2Python_boolean
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperR2Python_environment
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperR2Python_function
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testMapperR2Python_s4 (rpy2.robjects.tests.testRobjects.MappingTestCase)
> ... ok
>
> testMapperR2Python_string
> (rpy2.robjects.tests.testRobjects.MappingTestCase) ... ok
>
> testOverride_ri2py (rpy2.robjects.tests.testRobjects.MappingTestCase)
> ... ok
>
> testArray
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testBadArray
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testObjectArray
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testRecordArray
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testVectorBoolean
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testVectorCharacter
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testVectorComplex
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ...
> FAIL
>
> testVectorFloat
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testVectorInteger
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ... ok
>
> testVectorUnicodeCharacter
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase) ...
> FAIL
>
> testAssignItemComplex
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemDifferentType
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemInt
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemList
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemLogical
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemOutOfBound
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemReal
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testAssignItemString
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testGetItem (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ... ok
>
> testGetItemBooleanNA
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testGetItemExpression
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testGetItemLang
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testGetItemNegativeOutOfBound
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testGetItemOutOfBound
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testMissinfType
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testMissingRPreserveObjectBug
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testNewBool (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ... ok
>
> testNewComplex
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testNewInt (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ... ok
>
> testNewReal (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ... ok
>
> testNewString (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ... ok
>
> testNewUnicode
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testNewVector (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase)
> ... ok
>
> testNewWithoutInit
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... FAIL
>
> testNew_InvalidType
> (rpy2.rinterface.tests.test_SexpVector.SexpVectorTestCase) ... ok
>
> testBool
> (rpy2.rinterface.tests.test_SexpVector.WrapperSexpVectorTestCase) ... ok
>
> testFloat
> (rpy2.rinterface.tests.test_SexpVector.WrapperSexpVectorTestCase) ... ok
>
> testInt
> (rpy2.rinterface.tests.test_SexpVector.WrapperSexpVectorTestCase) ... ok
>
> testStr
> (rpy2.rinterface.tests.test_SexpVector.WrapperSexpVectorTestCase) ... ok
>
> testGet
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ...
> FAIL
>
> testGet_functionOnly
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ...
> FAIL
>
> testGet_functionOnly_lookupError
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ... ok
>
> testGlobalEnv
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ... ok
>
> testIter
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ... ok
>
> testLength
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ... ok
>
> testNew
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ... ok
>
> testSubscript
> (rpy2.rinterface.tests.test_SexpEnvironment.SexpEnvironmentTestCase) ... ok
>
> testDo_slot (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testDo_slot_assign (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testDo_slot_assign_create (rpy2.rinterface.tests.test_Sexp.SexpTestCase)
> ... ok
>
> testNew (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testNew_invalid (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testSexp_rsame_false (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testSexp_rsame_true (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testSexp_rsame_wrongType (rpy2.rinterface.tests.test_Sexp.SexpTestCase)
> ... ok
>
> testSexp_sexp_destroyCobj (rpy2.rinterface.tests.test_Sexp.SexpTestCase)
> ... ok
>
> testTypeof_get (rpy2.rinterface.tests.test_Sexp.SexpTestCase) ... ok
>
> testCallS4SetClass
> (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase) ... ok
>
> testClosureEnv
> (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase) ... FAIL
>
> testErrorInCall
> (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase) ... ok
>
> testNew (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase) ... ok
>
> testRError (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase)
> ... ok
>
> testRcallArgsDict
> (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase) ... ok
>
> testTypeof (rpy2.rinterface.tests.test_SexpClosure.SexpClosureTestCase)
> ... ok
>
> testArrayStructNumpyBoolean
> (rpy2.rinterface.tests.test_SexpVectorNumeric.SexpVectorNumericTestCase)
> ... ok
>
> testArrayStructNumpyComplex
> (rpy2.rinterface.tests.test_SexpVectorNumeric.SexpVectorNumericTestCase)
> ... ok
>
> testArrayStructNumpyDouble
> (rpy2.rinterface.tests.test_SexpVectorNumeric.SexpVectorNumericTestCase)
> ... ok
>
> testArrayStructNumpyInt
> (rpy2.rinterface.tests.test_SexpVectorNumeric.SexpVectorNumericTestCase)
> ... ok
>
> testCallErrorWhenEndedR
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... FAIL
>
> testGet_initoptions
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... ok
>
> testReadConsoleWithError
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... FAIL
>
> testSetReadConsole
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... FAIL
>
> testSetWriteConsole
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... FAIL
>
> testSet_initoptions
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... ok
>
> testStr_typeint (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
> ... ok
>
> testStr_typeint_invalid
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... ok
>
> testWriteConsoleWithError
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase) ... FAIL
>
> testObjectDispatchClosure
> (rpy2.rinterface.tests.test_EmbeddedR.ObjectDispatchTestCase) ... ok
>
> testObjectDispatchLang
> (rpy2.rinterface.tests.test_EmbeddedR.ObjectDispatchTestCase) ... ok
>
> testObjectDispatchVector
> (rpy2.rinterface.tests.test_EmbeddedR.ObjectDispatchTestCase) ... ok
>
> testGetSetitem (rpy2.rlike.tests.test_container.ArgsDictTestCase) ... ok
>
> testGetSetitemWithNone
> (rpy2.rlike.tests.test_container.ArgsDictTestCase) ... ok
>
> testItems (rpy2.rlike.tests.test_container.ArgsDictTestCase) ... ok
>
> testLen (rpy2.rlike.tests.test_container.ArgsDictTestCase) ... ok
>
> testNew (rpy2.rlike.tests.test_container.ArgsDictTestCase) ... ok
>
> testReverse (rpy2.rlike.tests.test_container.ArgsDictTestCase) ... ok
>
> test__add__ (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> test__delitem__ (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> test__delslice__ (rpy2.rlike.tests.test_container.TaggedListTestCase)
> ... ok
>
> test__iadd__ (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> test__imul__ (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> test__init__ (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> test__setslice__ (rpy2.rlike.tests.test_container.TaggedListTestCase)
> ... ok
>
> testappend (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testextend (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testinsert (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testitems (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testiterontag (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testitertags (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testpop (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testremove (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testreverse (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testsettag (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testsort (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testtags (rpy2.rlike.tests.test_container.TaggedListTestCase) ... ok
>
> testSumByString (rpy2.rlike.tests.test_functional.TapplyTestCase) ... ok
>
> testIterify (rpy2.rlike.tests.test_functional.VectorizeTestCase) ... ok
>
> testListify (rpy2.rlike.tests.test_functional.VectorizeTestCase) ... ok
>
> testOrder (rpy2.rlike.tests.test_indexing.OrderTestCase) ... ok
>
> testAttributeExpansion (rpy2.tests_rpy_classic.RpyClassicTestCase) ... ok
>
> testCallable (rpy2.tests_rpy_classic.RpyClassicTestCase) ... ok
>
> testFunctionCall (rpy2.tests_rpy_classic.RpyClassicTestCase) ... ok
>
> testSexp (rpy2.tests_rpy_classic.RpyClassicTestCase) ... ok
>
>
>
> ======================================================================
>
> FAIL: testVectorComplex
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase)
>
> ----------------------------------------------------------------------
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\Lib\site-packages\rpy2\robjects\tests\testNumpyConversions.py",
> line 45, in testVectorComplex
>
> self.assertTrue(False) # arrays of complex causing segfault
>
> AssertionError
>
>
>
> ======================================================================
>
> FAIL: testVectorUnicodeCharacter
> (rpy2.robjects.tests.testNumpyConversions.NumpyConversionsTestCase)
>
> ----------------------------------------------------------------------
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\Lib\site-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
> "C:\Python25\Lib\site-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
> "C:\Python25\Lib\site-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
> "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_SexpEnvironment.py",
>
> line 55, 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
> "C:\Python25\Lib\site-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
> "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py",
> line 133, in testCallErrorWhenEndedR
>
> self.assertTrue(False) # worked when tested, but calling
> endEmbeddedR causes trouble
>
> AssertionError
>
>
>
> ======================================================================
>
> FAIL: testReadConsoleWithError
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
>
> ----------------------------------------------------------------------
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py",
> line 110, in testReadConsoleWithError
>
> self.assertTrue(False) # cannot be tested with Python < 2.6
>
> AssertionError
>
>
>
> ======================================================================
>
> FAIL: testSetReadConsole
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
>
> ----------------------------------------------------------------------
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py",
> line 105, in testSetReadConsole
>
> self.assertEquals(yes.strip(), res[0])
>
> AssertionError: 'yes' != ''
>
>
>
> ======================================================================
>
> FAIL: testSetWriteConsole
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
>
> ----------------------------------------------------------------------
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py",
> line 36, in testSetWriteConsole
>
> self.assertEquals('[1] "3"\n', str.join('', buf))
>
> AssertionError: '[1] "3"\n' != ''
>
>
>
> ======================================================================
>
> FAIL: testWriteConsoleWithError
> (rpy2.rinterface.tests.test_EmbeddedR.EmbeddedRTestCase)
>
> ----------------------------------------------------------------------
>
> Traceback (most recent call last):
>
> File
> "C:\Python25\Lib\site-packages\rpy2\rinterface\tests\test_EmbeddedR.py",
> line 40, in testWriteConsoleWithError
>
> self.assertTrue(False) # cannot be tested with Python < 2.6
>
> AssertionError
>
>
>
> ----------------------------------------------------------------------
>
> Ran 169 tests in 4.859s
>
>
>
> FAILED (failures=11)
>
> Any help will be appreciated.
>
> Gary
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rpy-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list