That's the canonical method to measure the output impedance of an amplifier's two-port network representation with admittance
or inverse hybrid (g) parameters.
For a real amplifier, however, this is not necessary: Just use your preferred (actual) input impedance in order to get the real output impedance.
Depending on an amplifier's circuit architecture (e.g. in parallel-parallel or parallel-series feedback connection), short-circuiting its input could even result in nullifying the feedback and so change the intended closed-loop gain into an open-loop gain, thereby changing (increasing) the output impedance quite a lot.