~mysql/myconnpy/1.1

Viewing all changes in revision 446.

  • Committer: Geert Vanderkelen
  • Date: 2014-03-27 11:24:10 UTC
  • Revision ID: geert.vanderkelen@oracle.com-20140327112410-g6oaz6zt44np1eak
BUG#18380100: Fix introspection for Django and Python v3

The introspecting to get the primary key of MySQL tables
was still using iteritems(). This means that this could
would have failed with Python v3. We now use items(), which
should be fine for both v2 and 3 as the dictionaries used
will be small.

Added unittests for the django.introspection backend and
addressed a few other possible issues.

Unit tests for Django can be run using the --with-django
argument pointing to the Django source, for example:

 shell> python --with-django=/opt/django/1.6

We also fixed a few deprecation warnings for the unit
tests and tests themselves improved with using a
dedicated build for testing.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: