コード例 #1
0
 def _run_machar_highprec(self):
     # Instanciate MachAr instance with high enough precision to cause
     # underflow
     try:
         hiprec = ntypes.float96
         machar = MachAr(lambda v: array([v], hiprec))
     except AttributeError:
         "Skipping test: no nyptes.float96 available on this platform."
コード例 #2
0
ファイル: test_machar.py プロジェクト: Rachelslh/CCadoc_ERP
 def _run_machar_highprec(self):
     # Instantiate MachAr instance with high enough precision to cause
     # underflow
     try:
         hiprec = ntypes.float96
         MachAr(lambda v:array([v], hiprec))
     except AttributeError:
         # Fixme, this needs to raise a 'skip' exception.
         "Skipping test: no ntypes.float96 available on this platform."