我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用ctypes.test()。
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")