was walking past, was passing by, took, attended, went through (a course/training/medical exam)
Четвертый курс он проходил в больнице.
He spent his fourth year in the hospital.
— Охота за «Красным Октябрем» (1990)
Когда в двенадцать я проходил мимо кафе, они еще были там.
When I walked past the café at twelve, they were still there.
— Дьяволицы (1955)
Значит, он никогда не проходил специальную подготовку?
So he never received any specialized training?
— Сочувствие господину Месть (2002)