historical/toontown-classic.git/panda/python/Lib/test/leakers/test_gestalt.py

15 lines
275 B
Python
Raw Normal View History

2024-01-16 17:20:27 +00:00
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