Minor fix to pytest header modules version check
Merge pull request #3163 from cdeil/pytest-version-check

Minor fix to pytest header modules version check