예제 #1
0
 def mem_assert_no_switchpoints(self):
     self.add_result(
         sizeof(gruvi.assert_no_switchpoints(), exclude=('_hub', )))
예제 #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)
예제 #3
0
파일: test_hub.py 프로젝트: swegener/gruvi
 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)
예제 #4
0
파일: memory.py 프로젝트: Sevenops/gruvi
 def mem_assert_no_switchpoints(self):
     self.add_result(sizeof(gruvi.assert_no_switchpoints(), exclude=('_hub',)))