Home
last modified time | relevance | path

Searched refs:raise_catch (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_exceptions.py31 def raise_catch(self, exc, excname): member in ExceptionTests
44 self.raise_catch(AttributeError, "AttributeError")
47 self.raise_catch(EOFError, "EOFError")
63 self.raise_catch(IOError, "IOError")
66 self.raise_catch(ImportError, "ImportError")
69 self.raise_catch(IndexError, "IndexError")
73 self.raise_catch(KeyError, "KeyError")
77 self.raise_catch(KeyboardInterrupt, "KeyboardInterrupt")
79 self.raise_catch(MemoryError, "MemoryError")
81 self.raise_catch(NameError, "NameError")
[all …]
/external/python/cpython3/Lib/test/
Dtest_exceptions.py32 def raise_catch(self, exc, excname): member in ExceptionTests
45 self.raise_catch(AttributeError, "AttributeError")
48 self.raise_catch(EOFError, "EOFError")
64 self.raise_catch(OSError, "OSError")
67 self.raise_catch(ImportError, "ImportError")
70 self.raise_catch(IndexError, "IndexError")
74 self.raise_catch(KeyError, "KeyError")
78 self.raise_catch(KeyboardInterrupt, "KeyboardInterrupt")
80 self.raise_catch(MemoryError, "MemoryError")
82 self.raise_catch(NameError, "NameError")
[all …]