MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_aligned

Function test_aligned

tests/test_class.py:454–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452
453
454def test_aligned():
455 if hasattr(m, "Aligned"):
456 p = m.Aligned().ptr()
457 assert p % 1024 == 0
458
459
460# https://foss.heptapod.net/pypy/pypy/-/issues/2742

Callers

nothing calls this directly

Calls 2

hasattrFunction · 0.85
ptrMethod · 0.80

Tested by

no test coverage detected