Sign in
◑
Theme
android
/
platform
/
external
/
python
/
c3419d5f754b26d1b1755f64bc8fa5ef35fcfcfe
/
.
/
Lib
/
test
/
leakers
/
test_gestalt.py
blob: 46bfcc806dc6c5207631c7544e75d62a428be512 [
file
]
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