Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
2442015af26321083d4a2d75c096c8b732f049b2
/
.
/
Lib
/
test
/
leakers
/
test_gestalt.py
blob: e0081c1fc51025277820f5af25733d31329e11d6 [
file
] [
log
] [
blame
]
import
sys
if
sys
.
platform
!=
'darwin'
:
raise
ValueError
(
"This test only leaks on Mac OS X"
)
def
leak
():
# taken from platform._mac_ver_lookup()
from
gestalt
import
gestalt
import
MacOS
try
:
gestalt
(
'sysu'
)
except
MacOS
.
Error
:
pass