Commit 572104ff authored by Thomas Heller's avatar Thomas Heller

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

imported on non-windows systems.
parent 2464087b
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment