From ea2cf6f6253852587f2d9e00ffd658f076981413 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Tue, 18 Mar 2014 12:41:42 +0100 Subject: Python 3: load xrange from six.moves --- tests/test_auth/test_auth_cookie.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_auth/test_auth_cookie.py b/tests/test_auth/test_auth_cookie.py index 876f24f..d1db981 100644 --- a/tests/test_auth/test_auth_cookie.py +++ b/tests/test_auth/test_auth_cookie.py @@ -3,6 +3,7 @@ # the MIT License: http://www.opensource.org/licenses/mit-license.php import os +from six.moves import xrange try: # Python 3 from http.cookies import SimpleCookie @@ -43,6 +44,6 @@ def test_basic(key='key', val='bingles'): assert ("%s: %s" % (key,val.replace("\n","\n "))) in content def test_roundtrip(): - roundtrip = str('').join(map(chr,xrange(256))) + roundtrip = str('').join(map(chr, xrange(256))) test_basic(roundtrip,roundtrip) -- cgit v1.2.1