Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1694 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

TestBasicPagination does not run with Py 2.3

Reported by: chrisz Owned by: anonymous
Priority: low Milestone: 1.0.4
Component: TurboGears Version: 1.0.4b3
Severity: normal Keywords:


turbogears.tests.test_paginate.TestBasicPagination? does not run with Python 2.3.

Change History

comment:1 Changed 11 years ago by roger.demetrescu

Florent and I have talked about this sometime ago (in pvt conversation).

The problems is that we are providing an "old" simplejson egg for python 2.3:

  • Python 2.3: simplejson-1.3-py2.3.egg
  • Python 2.4: simplejson-1.7.3-py2.4-win32.egg
  • Python 2.5: simplejson-1.7.3-py2.5.egg

A quick diff between simplejson 1.3 and 1.7.3 showed this difference in encoder.py (among other differences):


+     # escape all forward slashes to prevent </script> attack
+     '/': '\\/',

If you copy the 1.7.3 egg to python 2.3, all paginate tests run fine...

comment:2 Changed 11 years ago by chrisz

  • Status changed from new to closed
  • Resolution set to fixed

Right, that was the reason. I have checked in new simplejson eggs for Py2.3 and a comment about this problem in the particular test.

Note: See TracTickets for help on using tickets.