MCPcopy Create free account
hub / github.com/apache/arrow / test_schema_weakref

Function test_schema_weakref

python/pyarrow/tests/test_schema.py:259–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258
259def test_schema_weakref():
260 fields = [
261 pa.field('foo', pa.int32()),
262 pa.field('bar', pa.string()),
263 pa.field('baz', pa.list_(pa.int8()))
264 ]
265 schema = pa.schema(fields)
266 wr = weakref.ref(schema)
267 assert wr() is not None
268 del schema
269 assert wr() is None
270
271
272def test_schema_to_string_with_metadata():

Callers

nothing calls this directly

Calls 3

fieldMethod · 0.45
stringMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected