예제 #1
0
 def test_error(self):
     with temp_filename() as filename:
         with open(filename, "wb") as h:
             h.write(b"something")
         faulthandling.enable(filename)
         with self.assertRaises(FaultHandlerCrash):
             faulthandling.raise_and_clear_error()
         faulthandling.disable()
예제 #2
0
 def test_error(self):
     with temp_filename() as filename:
         with open(filename, "wb") as h:
             h.write(b"something")
         faulthandling.enable(filename)
         with self.assertRaises(FaultHandlerCrash):
             faulthandling.raise_and_clear_error()
         faulthandling.disable()
예제 #3
0
 def test_basic(self):
     with temp_filename() as filename:
         faulthandling.enable(filename)
         faulthandling.raise_and_clear_error()
         faulthandling.disable()
예제 #4
0
 def test_basic(self):
     with temp_filename() as filename:
         faulthandling.enable(filename)
         faulthandling.raise_and_clear_error()
         faulthandling.disable()