def test_collect_2():
    a, b, x = symbols('a,b,x')
    assert collect(a*(cos(x) + sin(x)) + b*(cos(x) + sin(x)),
        sin(x) + cos(x)) == (a + b)*(cos(x) + sin(x))
Called by pyglet internal processes when the blocking operation
dataset/ETHPy150Open sympy/sympy/sympy/simplify/tests/test_radsimp.py/test_collect_2--crossover with--dataset/ETHPy150Open ardekantur/pyglet/pyglet/app/base.py/EventLoop.exit_blocking