Beispiel #1
0
def test_schema_ctor_errors():
    with pytest.raises(ReferenceError):
        repr(pa.Schema())
    with pytest.raises(ReferenceError):
        str(pa.Schema())
Beispiel #2
0
def test_schema_constructor_errors():
    msg = ("Do not call Schema's constructor directly, use `pyarrow.schema` "
           "instead")
    with pytest.raises(TypeError, match=msg):
        pa.Schema()