2006-02-28 15:02:05 -04:00
|
|
|
import sys
|
|
|
|
|
|
|
|
if sys.platform != 'darwin':
|
2006-03-02 13:47:01 -04:00
|
|
|
raise ValueError, "This test only leaks on Mac OS X"
|
2006-02-28 15:02:05 -04:00
|
|
|
|
|
|
|
def leak():
|
|
|
|
# taken from platform._mac_ver_lookup()
|
|
|
|
from gestalt import gestalt
|
|
|
|
import MacOS
|
|
|
|
|
|
|
|
try:
|
|
|
|
gestalt('sysu')
|
|
|
|
except MacOS.Error:
|
|
|
|
pass
|