source:
python/trunk/Lib/test/leakers/test_gestalt.py
Last change on this file was 2, checked in by , 15 years ago | |
---|---|
|
|
File size: 275 bytes |
Line | |
---|---|
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 |
Note:
See TracBrowser
for help on using the repository browser.