Terry J. Reedy added the comment: Adding engine.patvar.set(None) Equal(search(text), None) to test_search completed the coverage. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18489> _______________________________________