Avoid warnings in the test suite because ctypes.wintypes cannot be

imported on non-windows systems.
This commit is contained in:
Thomas Heller 2007-01-12 20:08:19 +00:00
parent 2464087bda
commit 572104ff5c
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,6 @@
from ctypes import *
from ctypes.test import is_resource_enabled
import unittest, sys
from ctypes import wintypes
import _ctypes_test
@ -49,9 +48,11 @@ if sys.platform == "win32":
class TestWintypes(unittest.TestCase):
def test_HWND(self):
from ctypes import wintypes
self.failUnlessEqual(sizeof(wintypes.HWND), sizeof(c_void_p))
def test_PARAM(self):
from ctypes import wintypes
self.failUnlessEqual(sizeof(wintypes.WPARAM),
sizeof(c_void_p))
self.failUnlessEqual(sizeof(wintypes.LPARAM),