tests: compatibility with Python 2.6

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
travis-ci: Python 2.6 build enabled

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>