Python ctypes 模块,test() 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用ctypes.test()

项目:zippy    作者:securesystemslab    | 项目源码 | 文件源码
def SKIPPED_test_no_more_xfail(self):
        # We decided to not explicitly support the whole ctypes-2.7
        # and instead go for a case-by-case, demand-driven approach.
        # So this test is skipped instead of failing.
        import socket
        import ctypes.test
        self.assertTrue(not hasattr(ctypes.test, 'xfail'),
                        "You should incrementally grep for '@xfail' and remove them, they are real failures")