On May 25, 12:51 pm, Vinay Sajip <[email protected]> wrote:
> The single codebase port of Django to Python 3 is now available on
> GitHub [1]. Recent core changes have been merged, and the test results
> are available at [2].
>
> Summary:
>
> 2.7.2: Ran 4734 tests in 540.793s - OK (skipped=112, expected
> failures=3)
> 3.2.2: Ran 4688 tests in 524.807s - OK (skipped=120, expected
> failures=2, unexpected successes=1)
>
> Recent tests only cover the SQLite backend and were run on Linux. Help
> with testing other DB backends (and the GIS functionality) would be
> much appreciated!
>
> Regards,
>
> Vinay Sajip
>
> [1]https://github.com/vsajip/django/tree/django3
> [2]https://gist.github.com/1373553
Both Oracle and MySQL fail to run because of this error (on both 2.7
and 3.2):
File "/home/akaariai/Programming/django/tests/django/db/backends/
mysql/compiler.py", line 2, in <module>
from django.utils.itercompat import izip_longest
ImportError: cannot import name izip_longest
I get the following error when running the tests on any database on my
setup (Ubuntu 12.04, Python 3.2):
Traceback (most recent call last):
File "/home/akaariai/Programming/django/tests/regressiontests/
test_runner/tests.py", line 197, in
test_option_name_and_value_separated
self.assertNoOutput(err)
File "/home/akaariai/Programming/django/tests/regressiontests/
admin_scripts/tests.py", line 164, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually
contains '%s'" % stream)
AssertionError: 335 != 0 : Stream should be empty: actually contains
'b'\'import warnings\' failed; traceback:\nTraceback (most recent call
last):\n File "/home/akaariai/Programming/python3/lib/python3.2/
warnings.py", line 6, in <module>\n import linecache\n File "/home/
akaariai/Programming/python3/lib/python3.2/linecache.py", line 10, in
<module>\n import tokenize\nImportError: No module named tokenize
\n''
I used this to install my setup:
# sudo apt-get install python3 python3-dev virtualenv
# virtualenv -p python3 --distribute python3
# source python3/bin/activate
# pip install psycopg2
# run tests...
Am I missing some dependency?
PostgreSQL seems fine on 2.7 for the reduced test set ran
(introspection transactions inspectdb fixtures queries extra_regress
prefetch_related test_runner aggregation_regress). On 3.2 I get this
additional error:
Traceback (most recent call last):
File "/home/akaariai/Programming/django/tests/django/test/utils.py",
line 203, in inner
return test_func(*args, **kwargs)
File "/home/akaariai/Programming/django/tests/modeltests/
prefetch_related/tests.py", line 378, in test_child_link_prefetch
self.assertIn('authorwithage', connection.queries[-1]
['sql'].lower())
File "/usr/lib/python3.2/unittest/case.py", line 889, in assertIn
if member not in container:
TypeError: Type str doesn't support the buffer API
I do not have any GIS installations available on this machine.
- 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.