#23763: Python 3.5 compatibility ------------------------------+------------------------------------ Reporter: timgraham | Owner: nobody Type: New feature | Status: new Component: Core (Other) | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------+------------------------------------
Comment (by timgraham): All the tests currently pass except for some `ImportError` exceptions being reported, likely due to http://bugs.python.org/issue7559. {{{ ====================================================================== ERROR: apps.failing_app (unittest.loader.ModuleImportFailure) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/tim/code/cpython/Lib/unittest/case.py", line 58, in testPartExecutor yield File "/home/tim/code/cpython/Lib/unittest/case.py", line 577, in run testMethod() File "/home/tim/code/cpython/Lib/unittest/loader.py", line 36, in testFailure raise exception ImportError: Failed to import test module: apps.failing_app Traceback (most recent call last): File "/home/tim/code/cpython/Lib/unittest/loader.py", line 451, in _find_test_path package = self._get_module_from_name(name) File "/home/tim/code/cpython/Lib/unittest/loader.py", line 358, in _get_module_from_name __import__(name) File "/home/tim/code/django/tests/apps/failing_app/__init__.py", line 1, in <module> raise ImportError("Oops") ImportError: Oops ====================================================================== ERROR: migrations.faulty_migrations.import_error (unittest.loader.ModuleImportFailure) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/tim/code/cpython/Lib/unittest/case.py", line 58, in testPartExecutor yield File "/home/tim/code/cpython/Lib/unittest/case.py", line 577, in run testMethod() File "/home/tim/code/cpython/Lib/unittest/loader.py", line 36, in testFailure raise exception ImportError: Failed to import test module: migrations.faulty_migrations.import_error Traceback (most recent call last): File "/home/tim/code/cpython/Lib/unittest/loader.py", line 451, in _find_test_path package = self._get_module_from_name(name) File "/home/tim/code/cpython/Lib/unittest/loader.py", line 358, in _get_module_from_name __import__(name) File "/home/tim/code/django/tests/migrations/faulty_migrations/import_error/__init__.py", line 1, in <module> import fake_python_module # NOQA ImportError: No module named 'fake_python_module' }}} Also, some GIS related exceptions like the following if GIS dependencies aren't installed: {{{ ====================================================================== ERROR: django.contrib.gis.admin (unittest.loader.ModuleImportFailure) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/tim/code/cpython/Lib/unittest/case.py", line 58, in testPartExecutor yield File "/home/tim/code/cpython/Lib/unittest/case.py", line 577, in run testMethod() File "/home/tim/code/cpython/Lib/unittest/loader.py", line 36, in testFailure raise exception ImportError: Failed to import test module: django.contrib.gis.admin Traceback (most recent call last): File "/home/tim/code/cpython/Lib/unittest/loader.py", line 451, in _find_test_path package = self._get_module_from_name(name) File "/home/tim/code/cpython/Lib/unittest/loader.py", line 358, in _get_module_from_name __import__(name) File "/home/tim/code/django/django/contrib/gis/admin/__init__.py", line 7, in <module> from django.contrib.gis.admin.options import GeoModelAdmin # NOQA File "/home/tim/code/django/django/contrib/gis/admin/options.py", line 2, in <module> from django.contrib.gis.admin.widgets import OpenLayersWidget File "/home/tim/code/django/django/contrib/gis/admin/widgets.py", line 9, in <module> from django.contrib.gis.geos import GEOSGeometry, GEOSException ImportError: cannot import name 'GEOSGeometry' }}} -- Ticket URL: <https://code.djangoproject.com/ticket/23763#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.d19b07e09a497edcad3507675a8a0ebd%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.