示例#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
 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',)))