Fix test selection in Python 2.6