コード例 #1
0
ファイル: test_table.py プロジェクト: mojotech/arrow
def test_schema_ctor_errors():
    with pytest.raises(ReferenceError):
        repr(pa.Schema())
    with pytest.raises(ReferenceError):
        str(pa.Schema())
コード例 #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()