def test_unicode():
    mp.dps = 15
    try:
        unicode = unicode
    except __HOLE__:
        unicode = str
    assert mpf(unicode('2.76')) == 2.76
    assert mpf(unicode('inf')) == inf
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/tests/test_convert.py/test_unicode