From 5af2af3e332760bdeec9357cca09707f98854525 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 14 Sep 2007 22:54:58 +0000 Subject: [PATCH] Fixed the test in [6218] which was invalid for psycopg2 and friends -- executemany() shouldn't accept None, just empty lists. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6242 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/backends/models.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/regressiontests/backends/models.py b/tests/regressiontests/backends/models.py index 50a628a22e..a455f21e67 100644 --- a/tests/regressiontests/backends/models.py +++ b/tests/regressiontests/backends/models.py @@ -17,11 +17,7 @@ __test__ = {'API_TESTS': """ >>> Square.objects.order_by('root') [, , , , , , , , , , ] -#4765: executemany with params=None or params=[] does nothing ->>> cursor.executemany('INSERT INTO BACKENDS_SQUARE (ROOT, SQUARE) VALUES (%s, %s)', None) and None or None ->>> Square.objects.count() -11 - +#4765: executemany with params=[] does nothing >>> cursor.executemany('INSERT INTO BACKENDS_SQUARE (ROOT, SQUARE) VALUES (%s, %s)', []) and None or None >>> Square.objects.count() 11