def test_cannot_create_instance_of_stolenbuffer(self): """Stolen buffers need to be created through the smart constructor ``move_into_mutable_buffer`` which has a bunch of checks in it. """ msg = "cannot create 'pandas.util._move.stolenbuf' instances" with tm.assert_raises_regex(TypeError, msg): stolenbuf()
def test_cannot_create_instance_of_stolen_buffer(): # Stolen buffers need to be created through the smart constructor # "move_into_mutable_buffer," which has a bunch of checks in it. msg = "cannot create 'pandas.util._move.stolenbuf' instances" with pytest.raises(TypeError, match=msg): stolenbuf()
def test_cannot_create_instance_of_stolenbuffer(self): """Stolen buffers need to be created through the smart constructor ``move_into_mutable_buffer`` which has a bunch of checks in it. """ msg = "cannot create 'pandas.util._move.stolenbuf' instances" with tm.assert_raises_regex(TypeError, msg): stolenbuf()
def test_cannot_create_instance_of_stolen_buffer(): # Stolen buffers need to be created through the smart constructor # "move_into_mutable_buffer," which has a bunch of checks in it. msg = "cannot create 'pandas.util._move.stolenbuf' instances" with pytest.raises(TypeError, match=msg): stolenbuf()