Minor fix to pytest header modules version check

This is a minor fix to the pytest header module version check that @astrofrog and I already discussed here: https://github.com/astropy/astropy/pull/3157#issuecomment-64958270