Esempio n. 1
0
 def mem_assert_no_switchpoints(self):
     self.add_result(
         sizeof(gruvi.assert_no_switchpoints(), exclude=('_hub', )))
Esempio n. 2
0
 def test_assert_no_switchpoints(self):
     # Calling a switchpoint while in an assert_no_switchpoints block should
     # raise an AssertionError.
     with gruvi.assert_no_switchpoints():
         self.assertRaises(AssertionError, gruvi.sleep, 0)
Esempio n. 3
0
 def test_assert_no_switchpoints(self):
     # Calling a switchpoint while in an assert_no_switchpoints block should
     # raise an AssertionError.
     with gruvi.assert_no_switchpoints():
         self.assertRaises(AssertionError, gruvi.sleep, 0)
Esempio n. 4
0
 def mem_assert_no_switchpoints(self):
     self.add_result(sizeof(gruvi.assert_no_switchpoints(), exclude=('_hub',)))