Lock pytest to 4.6.x but less than 5.x
Lock pytest to 4.6.x but less than 5.x

Pytest stopped supporting Python 2.7 with their 5.x release series. I
think that this was the cause for some of the errors in some of the
appveyor and Travis builds.

titusz/epubcheck