﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7921	Tests that use 8-bit bytestrings fail on Python 2.6/sqlite3	Karen Tracey <kmtracey@…>		"Running the test suite on Python 2.6 beta2 we get several failures with this sqlite3 complaint:

{{{
        return Database.Cursor.execute(self, query, params)
    ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
}}}

Checking out the first couple so far they are due to tests that are indeed using bytestrings, not unicode strings, as arguments, for example:

http://code.djangoproject.com/browser/django/trunk/tests/modeltests/custom_pk/models.py#L107

has: >>> emp = Employee(employee_code='jaźń')

Shouldn't that be: >>> emp = Employee(employee_code=u'jaźń')

?

Changing it like so makes the test succeed on 2.6b2 and has no apparent ill-effects on 2.3/2.5.  But I'm a little surprised this hasn't caused a problem before, so I fear I'm missing something here? Should these calls be changed to use `u''` or is there something else that should be done to make them work on 2.6?"		closed	Uncategorized	dev		fixed	python26		Ready for checkin	1	0	0	0	0	0
