Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #832 (defect)

Opened 2 months ago

Last modified 2 months ago

Failure in test_encoding

Status: closed (fixed)

Reported by: fumanchu Assigned to: fumanchu
Priority: high Milestone: 3.1
Component: CherryPy code Keywords:
Cc:
C:\Python25\Lib\site-packages>python cherrypy\test\test.py --test_encoding
Python version used to run this test script: 2.5.2
CherryPy version 3.1.0rc1
HTTP server version HTTP/1.1
PID: 7212


Running tests: cherrypy._cpwsgi.CPWSGIServer
testDecoding (test_encoding.EncodingTests) ...
    ERROR: expected body:
"{'q': '\\xc2\\xa3'}"

actual body:
"{'q': u'\\xa3'}"
    Show: [B]ody [H]eaders [S]tatus [U]RL; [I]gnore, [R]aise, or sys.e[X]it >>  R
FAIL
testEncoding (test_encoding.EncodingTests) ... ok
testGzip (test_encoding.EncodingTests) ... ok

======================================================================
FAIL: testDecoding (test_encoding.EncodingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\cherrypy\test\webtest.py", line 278, in __call__
    testMethod()
  File "C:\Python25\Lib\site-packages\cherrypy\test\test_encoding.py", line 77, in testDecoding
    self.assertBody(r"{'q': '\xc2\xa3'}")
  File "C:\Python25\Lib\site-packages\cherrypy\test\webtest.py", line 394, in assertBody
    self._handlewebError(msg)
  File "C:\Python25\Lib\site-packages\cherrypy\test\webtest.py", line 253, in _handlewebError
    raise self.failureException(msg)
AssertionError: expected body:
"{'q': '\\xc2\\xa3'}"

actual body:
"{'q': u'\\xa3'}"

FAILED (failures=1)

Change History

06/28/08 17:45:01: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1993].

Hosted by WebFaction

Log in as guest/cpguest to create tickets