~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

Viewing changes to Lib/ctypes/test/test_pointers.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 13:47:31 UTC
  • mfrom: (39021.1.404 Regexp-2.7)
  • mto: This revision was merged to the branch mainline in revision 39030.
  • Revision ID: darklord@timehorse.com-20080921134731-rudomuzeh1b2tz1y
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import unittest
 
1
import unittest, sys
2
2
 
3
3
from ctypes import *
4
4
import _ctypes_test
183
183
        self.failUnlessEqual(bool(CFUNCTYPE(None)(0)), False)
184
184
        self.failUnlessEqual(bool(CFUNCTYPE(None)(42)), True)
185
185
 
 
186
        # COM methods are boolean True:
 
187
        if sys.platform == "win32":
 
188
            mth = WINFUNCTYPE(None)(42, "name", (), None)
 
189
            self.failUnlessEqual(bool(mth), True)
 
190
 
186
191
if __name__ == '__main__':
187
192
    unittest.main()