<p>I finally figured it out. It had nothing to do with the yum version; it just so happened that there was cached metadata for the repository on the RHEL 6.2 machine, and when yum failed to connect to the repository host, it used the cached metadata instead.</p>
<p>Thus, if I want to know if any yum repositories are inaccessible, I need to do a "yum clean" first.</p>