Beispiel #1
0
 def testArgIsFunction(self):
     h = 5
     try:
         instance(h)
     except InstanceError as e:
         self.assertEqual(e.kind, _error.ArgType)
     else:
         self.fail()
Beispiel #2
0
 def testArgIsFunction(self):
     h = 5
     try:
         instance(h)
     except InstanceError as e:
         self.assertEqual(e.kind, _error.ArgType)
     else:
         self.fail()
Beispiel #3
0
 def testArgIsFunction(self):
     h = 5
     with raises_kind(InstanceError, _error.ArgType):
         instance(h)
Beispiel #4
0
 def testArgIsFunction(self):
     h = 5
     with raises_kind(InstanceError, _error.ArgType):
         instance(h)