]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/test/leakers/test_gestalt.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / leakers / test_gestalt.py
1 import sys
2
3 if sys.platform != 'darwin':
4 raise ValueError, "This test only leaks on Mac OS X"
5
6 def leak():
7 # taken from platform._mac_ver_lookup()
8 from gestalt import gestalt
9 import MacOS
10
11 try:
12 gestalt('sysu')
13 except MacOS.Error:
14 pass