source: python/trunk/Lib/test/leakers/test_gestalt.py

Last change on this file was 2, checked in by Yuri Dario, 15 years ago

Initial import for vendor code.

  • Property svn:eol-style set to native
File size: 275 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.