Source

CherryPy / cherrypy / test / test_etags.py

Diff from to

cherrypy/test/test_etags.py

 import cherrypy
+from cherrypy._cpcompat import ntou
 from cherrypy.test import helper
 
 
             fail.exposed = True
             
             def unicoded(self):
-                return u'I am a \u1ee4nicode string.'
+                return ntou('I am a \u1ee4nicode string.', 'escape')
             unicoded.exposed = True
+            # In Python 3, tools.encode is on by default
             unicoded._cp_config = {'tools.encode.on': True}
-
+        
         conf = {'/': {'tools.etags.on': True,
                       'tools.etags.autotags': True,
                       }}