Beispiel #1
0
 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()
Beispiel #2
0
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()
Beispiel #3
0
 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()
Beispiel #4
0
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()