You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
275 B
15 lines
275 B
4 months ago
|
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
|