fix tests for python3 using no cover pragma