Fix tests for Python 2.6 (broken by 0a9d6469f0eadbb6e74dca8d8a7167f20074f24f).