changeset 1 | 2fb8b9db1c86 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/symbian-qemu-0.9.1-12/python-2.6.1/Lib/test/leakers/test_gestalt.py Fri Jul 31 15:01:17 2009 +0100 @@ -0,0 +1,14 @@ +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