summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:41:42 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:41:42 +0100
commitea2cf6f6253852587f2d9e00ffd658f076981413 (patch)
tree64e8175f6d867d5ca47bec4809d6fc4d90d78677 /tests
parentcfc688ec7afc76fd0667247c9a697092171c915f (diff)
downloadpaste-ea2cf6f6253852587f2d9e00ffd658f076981413.tar.gz
Python 3: load xrange from six.moves
Diffstat (limited to 'tests')
-rw-r--r--tests/test_auth/test_auth_cookie.py3
1 files changed, 2 insertions, 1 deletions
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)