fix skipping tests on OSX

On OSX 10.7 Python 2.7 not being connected to the network raises ``errno.EHOSTUNREACH`` instead of ``errno.ENETUNREACH`` which meant that skipping the network tests failed.