On Dec 4, 4:32 pm, Anssi Kääriäinen <[email protected]> wrote:
> 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: Anssi, thanks for posting this feedback. > 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. Try just b(name) instead of bytes(name, ...) and see if that works. > > 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. Replace *tuple(e) with *e.args (5 occurrences) and see how that works. Regards, Vinay Sajip -- 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.
