

def test_limits():
    (k, x) = symbols('k, x')
    assert (hyper((1,), ((S(4) / 3), (S(5) / 3)), (k ** 2)).series(k) == (((hyper((1,), ((S(4) / 3), (S(5) / 3)), 0) + (((9 * (k ** 2)) * hyper((2,), ((S(7) / 3), (S(8) / 3)), 0)) / 20)) + (((81 * (k ** 4)) * hyper((3,), ((S(10) / 3), (S(11) / 3)), 0)) / 1120)) + O((k ** 6))))
    assert (limit(meijerg((), (), (1,), (0,), (- k)), x, 0) == meijerg(((), ()), ((1,), (0,)), 0))

dataset/ETHPy150Open sympy/sympy/sympy/functions/special/tests/test_hyper.py test_limits/VarMisuse@223/236 `x`->`k`