On Dec 4, 3:01 pm, Vinay Sajip <[email protected]> wrote:
> Python 3.2.2
> =========
> Ran 4420 tests in 389.154s
>
> OK (skipped=96, expected failures=2, unexpected successes=1)

I am currently running the test suite using psycopg2 (2.4.0 onwards
support Python 3) and Python 3.2. I can report that there are at least
three things needing fixing:

Trivial mistake in django/db/backends/postgresql_psycopg2/
operations.py:
 -        return u('(%s)') % conn.join([sql, u('interval \')%s\'' %
mods])
+        return u('(%s)') % conn.join([sql, u('interval \'%s\'') %
mods])
(the closing parenthesis for u('interval \') is at wrong place)

A mistake in django/db/backends/util.py L154:
-    hsh = hashlib.md5(name).hexdigest()[:hash_len]
+    hsh = hashlib.md5(bytes(name, encoding="UTF8")).hexdigest()
[:hash_len]

The fix is probably not correct.

And then as last thing:
  File "/home/akaj/Django3/django/tests/django/db/backends/
postgresql_psycopg2/base.py", line 57, in execute
    reraise(utils.IntegrityError, utils.IntegrityError(*tuple(e)),
sys.exc_info()[2])
TypeError: 'IntegrityError' object is not iterable

I don't know what to do to that.

Otherwise looking good, though it might be that there are more errors.

 - Anssi

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to