Ejemplo n.º 1
0
def test_Dimension_error_regisration():
    with warns_deprecated_sympy():
        # tuple with more or less than two entries
        raises(IndexError, lambda: length._register_as_base_dim())

    with warns_deprecated_sympy():
        one = Dimension(1)
        raises(TypeError, lambda: one._register_as_base_dim())
Ejemplo n.º 2
0
def test_Dimension_error_regisration():
    with warns_deprecated_sympy():
        # tuple with more or less than two entries
        raises(IndexError, lambda: length._register_as_base_dim())

    with warns_deprecated_sympy():
        one = Dimension(1)
        raises(TypeError, lambda: one._register_as_base_dim())
Ejemplo n.º 3
0
def test_Dimension_error_regisration():
    with warnings.catch_warnings():
        warnings.filterwarnings("ignore", category=SymPyDeprecationWarning)

        # tuple with more or less than two entries
        raises(IndexError, lambda: length._register_as_base_dim())

        one = Dimension(1)
        raises(TypeError, lambda: one._register_as_base_dim())
Ejemplo n.º 4
0
def test_error_regisration():
    # tuple with more or less than two entries
    raises(IndexError, lambda: length._register_as_base_dim())

    one = Dimension(1)
    raises(TypeError, lambda: one._register_as_base_dim())
Ejemplo n.º 5
0
def test_error_regisration():
    # tuple with more or less than two entries
    raises(IndexError, lambda: length._register_as_base_dim())

    one = Dimension(1)
    raises(TypeError, lambda: one._register_as_base_dim())