Author zach.ware
Recipients amaury.forgeotdarc, belopolsky, meador.inge, serhiy.storchaka, zach.ware
Date 2013-11-15.08:14:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's a patch.  It turned out to be much more extensive than I expected, and the diff turned into a huge huge ugly monster that I hope Rietveld can help to make sense of, since the majority of the diff is simply changes in indentation level.

The most major change of this patch is the addition of a "needs_symbol" decorator to ctypes.test.__init__, which is then used throughout the tests.  Pre-patch, the tests are littered with constructs like this:

class TestSomething(unittest.TestCase):
    except NameError:
        def test_something_using_c_wchar(self):

These have all (I think) been simplified to:

class TestSomething(unittest.TestCase):
    def test_something_using_c_wchar(self):

There are also several instances of tests guarded by "if sys.platform = 'win32':" or similar, which have been turned into @unittest.skipUnless, and several tests which were commented out which have been uncommented and given unconditional skips.

On my Gentoo machine at home, the patch takes the ctypes test suite from 348 tests with 1 skip to 422 tests with 78 skips.
Date User Action Args
2013-11-15 08:14:53zach.waresetrecipients: + zach.ware, amaury.forgeotdarc, belopolsky, meador.inge, serhiy.storchaka
2013-11-15 08:14:53zach.waresetmessageid: <>
2013-11-15 08:14:53zach.warelinkissue19493 messages
2013-11-15 08:14:52zach.warecreate