我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用distutils.dist.announce()。
def test_announce(self): # make sure the level is known dist = Distribution() args = ('ok',) kwargs = {'level': 'ok2'} self.assertRaises(ValueError, dist.announce, args, kwargs)