• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import sys
2
3if sys.platform != 'darwin':
4    raise ValueError, "This test only leaks on Mac OS X"
5
6def 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
15