Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
454
def
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
hasattr
Function · 0.85
ptr
Method · 0.80
Tested by
no test coverage detected