def test_singledispatch1(self): if hasattr(functools, 'singledispatch'): with assertRaises(RuntimeError): doc.singledispatch_example1()
def test_singledispatch1(self): with assertRaises(RuntimeError): doc.singledispatch_example1()