bug: remove code from coverage due to different behaviour in py2x and py3x