fix pytest 2.3 compatibility