Author: aaugustin Date: 2011-10-16 02:51:22 -0700 (Sun, 16 Oct 2011) New Revision: 16994
Modified: django/trunk/tests/regressiontests/admin_scripts/tests.py Log: Fixed a test that depended on how identifiers are quoted by the database backend and broke under MySQL. Refs #17055. Modified: django/trunk/tests/regressiontests/admin_scripts/tests.py =================================================================== --- django/trunk/tests/regressiontests/admin_scripts/tests.py 2011-10-16 09:46:01 UTC (rev 16993) +++ django/trunk/tests/regressiontests/admin_scripts/tests.py 2011-10-16 09:51:22 UTC (rev 16994) @@ -864,14 +864,14 @@ "alternate: manage.py builtin commands work with settings provided as argument" args = ['sqlall','--settings=alternate_settings', 'admin_scripts'] out, err = self.run_manage(args) - self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"') + self.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]') self.assertNoOutput(err) def test_builtin_with_environment(self): "alternate: manage.py builtin commands work if settings are provided in the environment" args = ['sqlall','admin_scripts'] out, err = self.run_manage(args,'alternate_settings') - self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"') + self.assertRegexpMatches(out, 'CREATE TABLE [`"]admin_scripts_article[`"]') self.assertNoOutput(err) def test_builtin_with_bad_settings(self): -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.