Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a test that depended on how identifiers are quoted by the datab…

…ase backend and broke under MySQL. Refs #17055.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03316579f4d804f6828af16b7377a214a3b51518 1 parent d75337f
Aymeric Augustin authored October 16, 2011
4  tests/regressiontests/admin_scripts/tests.py
@@ -864,14 +864,14 @@ def test_builtin_with_settings(self):
864 864
         "alternate: manage.py builtin commands work with settings provided as argument"
865 865
         args = ['sqlall','--settings=alternate_settings', 'admin_scripts']
866 866
         out, err = self.run_manage(args)
867  
-        self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"')
  867
+        self.assertRegexpMatches(out,  'CREATE TABLE [`"]admin_scripts_article[`"]')
868 868
         self.assertNoOutput(err)
869 869
 
870 870
     def test_builtin_with_environment(self):
871 871
         "alternate: manage.py builtin commands work if settings are provided in the environment"
872 872
         args = ['sqlall','admin_scripts']
873 873
         out, err = self.run_manage(args,'alternate_settings')
874  
-        self.assertOutput(out, 'CREATE TABLE "admin_scripts_article"')
  874
+        self.assertRegexpMatches(out,  'CREATE TABLE [`"]admin_scripts_article[`"]')
875 875
         self.assertNoOutput(err)
876 876
 
877 877
     def test_builtin_with_bad_settings(self):

0 notes on commit 0331657

Please sign in to comment.
Something went wrong with that request. Please try again.