Lines Matching full:exceptions
1 # Python test set -- part 5, built-in exceptions
17 # Reloading the built-in exceptions module failed prior to Py2.2, while it
21 import exceptions
22 reload(exceptions)
24 self.fail("reloading exceptions: %s" % e)
287 self.assertEqual(type(e).__module__, 'exceptions')
515 """Check same msg for built-in exceptions"""
516 # These exceptions implement a __str__ method that uses the args
519 exceptions = [
528 for exception in exceptions:
538 """Check same msg for exceptions with 0 args and overridden __str__"""
551 """Check same msg for Exceptions with 1 arg"""
563 """Check same msg for exceptions with overridden __str__ and 1 arg"""
576 """Check same msg for Exceptions with many args"""
587 """Check same msg for exceptions with overridden __str__ and many args"""