Sign in
qemu
/
edk2
/
bd224a5dad4d32f5224f5e8ae998b70e4621dcd3
/
.
/
AppPkg
/
Applications
/
Python
/
Python-2.7.2
/
Lib
/
test
/
leakers
/
test_gestalt.py
blob: ac6522bcf21a34d3080e6ef18f3a1f0394603e37 [
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