#NEWLINE# @ dec . slow #NEWLINE# def test_complex( self ) : #NEWLINE# #INDENT# code = '\n               std::complex<double> num = std::complex<double>(1.0,1.0);\n               py::object val = num;\n               return_val = val;\n               ' #NEWLINE# res = inline_tools . inline ( res ) #NEWLINE# assert_equal ( sys . getrefcount ( res ) , 2 ) #NEWLINE# assert_equal ( res , ( 1.0 + 1j ) )