<[email protected]> wrote:
>> >
>> > Without doing anything else, I installed pymysql, and made a few
minimal
>> > modifications to use that module in the mysql backend, and fixed one
>> > Python3 incompatibility issue in db/backends/mysql/compiler.py.
>>
>> which was?

(missed that earlier)

It was the use of None as the first argument to map(), which Python 2
accepts, and happily zips its remaining arguments, but Python 3 throws a
TypeError (sensibly, as None is not a callable)

>>
>> > First initial test run indicates that there's still some work to do :)
>> >
>> > Ran 4429 tests in 18128.079s
>> > FAILED (failures=11, errors=375, skipped=114, expected failures=2,
>> > unexpected successes=1)
>> >
>> > (yeah, that's 18k seconds, just a bit over 5 hours, but mysql has never
>> > been fast on OS X; something about the way it rolls back the database
>> > between tests)
>>
>> I presume you've tried the advice given here:
>>
>>
http://www.stereoplex.com/blog/speeding-up-django-unit-test-runs-with-mysql
>>
>
> I haven't yet, but that's where I remember reading why MySQL tests are
always slow on the mac. Thanks for the pointer again, though -- hopefully
it speeds up testing tonight.

Actually, it turns out that I had applied that to my my.cnf -- everything
but the default storage engine. I added that anyway, but the tests are
still just as slow. They've been going for almost 4 hours again now; I'll
be able to report back once they're done.

> I have had to fix a couple of bugs in pymysql, but I think I am
eliminating most of the errors. Once I can plug my laptop in to run a full
test suite, I'll post the results.
>
> --
> Regards,
> Ian Clelland
> <[email protected]>
>

-- 
Regards,
Ian Clelland
<[email protected]>

-- 
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