mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 16:52:58 -07:00
Update cherrypy-18.6.1
This commit is contained in:
parent
b3ae6bd695
commit
ebffd124f6
57 changed files with 1269 additions and 1509 deletions
|
@ -1,5 +1,3 @@
|
|||
import six
|
||||
|
||||
import cherrypy
|
||||
from cherrypy.test import helper
|
||||
|
||||
|
@ -88,7 +86,7 @@ class IteratorTest(helper.CPWebCase):
|
|||
@cherrypy.expose
|
||||
def count(self, clsname):
|
||||
cherrypy.response.headers['Content-Type'] = 'text/plain'
|
||||
return six.text_type(globals()[clsname].created)
|
||||
return str(globals()[clsname].created)
|
||||
|
||||
@cherrypy.expose
|
||||
def getall(self, clsname):
|
||||
|
@ -139,7 +137,7 @@ class IteratorTest(helper.CPWebCase):
|
|||
headers = response.getheaders()
|
||||
for header_name, header_value in headers:
|
||||
if header_name.lower() == 'content-length':
|
||||
expected = six.text_type(1024 * 16 * 256)
|
||||
expected = str(1024 * 16 * 256)
|
||||
assert header_value == expected, header_value
|
||||
break
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue