[Pytest-commit] commit/pytest: hpk42: fix py26 compatibility

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Oct 27 10:02:23 CET 2014


1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/fb9d798eba06/
Changeset:   fb9d798eba06
User:        hpk42
Date:        2014-10-27 09:02:15+00:00
Summary:     fix py26 compatibility
Affected #:  1 file

diff -r 14f5f7ccc0fe611e36f8edecb122fb440f500ec9 -r fb9d798eba06ab252e7a00c39be588d3d9dd1fb2 _pytest/python.py
--- a/_pytest/python.py
+++ b/_pytest/python.py
@@ -923,8 +923,8 @@
     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):

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list