From 959395b7969e6b968751bd9e9075fbfb21ac75a4 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 27 Oct 2014 10:02:15 +0100 Subject: [PATCH] fix py26 compatibility --- _pytest/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_pytest/python.py b/_pytest/python.py index 972d42b9d..74ddf48b2 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -923,8 +923,8 @@ def idmaker(argnames, argvalues, idfn=None): ids = [_idvalset(valindex, valset, argnames, idfn) for valindex, valset in enumerate(argvalues)] if len(set(ids)) < len(ids): - # the user may have provided a bad idfn which means the ids are not unique - ids = ["{}".format(i) + testid for i, testid in enumerate(ids)] + # user may have provided a bad idfn which means the ids are not unique + ids = [str(i) + testid for i, testid in enumerate(ids)] return ids def showfixtures(config):