""" [ #xxx ] math.sqrt and math.log domain error issues """ import support import math try: math.sqrt(-1.5) except ValueError: pass else: raise support.TestWarning("math.sqrt(negative) should raise ValueError") try: math.log(0.0) except ValueError: pass else: raise support.TestWarning("math.log(0.0) should raise 'ValueError: math domain error'") try: math.log(-1.5) except ValueError: pass else: raise support.TestWarning("math.log(negative) should raise 'ValueError: math domain error'")