コード例 #1
0
 def check_bad(self, fromty, toty):
     with self.assertRaises(TypingError) as raises:
         dictobject._sentry_safe_cast(fromty, toty)
     self.assertIn(
         'cannot safely cast {fromty} to {toty}'.format(**locals()),
         str(raises.exception),
     )
コード例 #2
0
ファイル: test_dictobject.py プロジェクト: numba/numba
 def check_bad(self, fromty, toty):
     with self.assertRaises(TypingError) as raises:
         dictobject._sentry_safe_cast(fromty, toty)
     self.assertIn(
         'cannot safely cast {fromty} to {toty}'.format(**locals()),
         str(raises.exception),
     )
コード例 #3
0
 def check_good(self, fromty, toty):
     dictobject._sentry_safe_cast(fromty, toty)
コード例 #4
0
ファイル: test_dictobject.py プロジェクト: numba/numba
 def check_good(self, fromty, toty):
     dictobject._sentry_safe_cast(fromty, toty)