summaryrefslogtreecommitdiff
path: root/cherrypy/test/test_auth_basic.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-02-04 13:11:20 -0500
committerJason R. Coombs <jaraco@jaraco.com>2018-02-04 13:44:14 -0500
commitc314adc4deb7cd43aa985ce2541e39588e4098cb (patch)
treedaedd192da82551b82846fa2ee052ba3422bc9ab /cherrypy/test/test_auth_basic.py
parent513d4bfef99e7e599bc60c7da745d18439567797 (diff)
downloadcherrypy-git-14.0.0.tar.gz
Use bytes literals where appropriatev14.0.0
Diffstat (limited to 'cherrypy/test/test_auth_basic.py')
-rw-r--r--cherrypy/test/test_auth_basic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/test/test_auth_basic.py b/cherrypy/test/test_auth_basic.py
index 48582ec2..cb3b344f 100644
--- a/cherrypy/test/test_auth_basic.py
+++ b/cherrypy/test/test_auth_basic.py
@@ -35,7 +35,7 @@ class BasicAuthTest(helper.CPWebCase):
cherrypy.request.login)
userpassdict = {'xuser': 'xpassword'}
- userhashdict = {'xuser': md5(ntob('xpassword')).hexdigest()}
+ userhashdict = {'xuser': md5(b'xpassword').hexdigest()}
def checkpasshash(realm, user, password):
p = userhashdict.get(user)