Esempio n. 1
0
def test_vounit_function(string):
    # Function units cannot be written, so ensure they're not parsed either.
    with pytest.raises(ValueError):
        print(string)
        with catch_warnings(
        ):  # ct, dex also raise warnings - irrelevant here.
            u_format.VOUnit().parse(string)
Esempio n. 2
0
def test_vounit_function(string):
    # Function units cannot be written, so ensure they're not parsed either.
    with pytest.raises(ValueError):
        print(string)
        u_format.VOUnit().parse(string)
Esempio n. 3
0
def test_vounit_function(string):
    # Function units cannot be written, so ensure they're not parsed either.
    with pytest.raises(ValueError), warnings.catch_warnings():
        warnings.simplefilter('ignore')    # ct, dex also raise warnings - irrelevant here.
        u_format.VOUnit().parse(string)