]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix array test that was essentially taking a weird guess
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2016 23:30:37 +0000 (18:30 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2016 23:31:07 +0000 (18:31 -0500)
at the primary key of a row based on other tests invoking around it

(cherry picked from commit 7d70dfd412c05fd8349339da01b472bd3df02082)

test/dialect/postgresql/test_types.py

index f8c5c1c485b6643dcf224e3ae6e0d8ca1dfd950b..50b66f290f33e90e2259a48aa1b662213ad14867 100644 (file)
@@ -1079,13 +1079,13 @@ class ArrayRoundTripTest(fixtures.TablesTest, AssertsExecutionResults):
 
     def test_array_comparison(self):
         arrtable = self.tables.arrtable
-        arrtable.insert().execute(intarr=[1, 2, 3],
+        arrtable.insert().execute(id=5, intarr=[1, 2, 3],
                     strarr=[util.u('abc'), util.u('def')])
         results = select([arrtable.c.id]).\
                         where(arrtable.c.intarr < [4, 5, 6]).execute()\
                         .fetchall()
         eq_(len(results), 1)
-        eq_(results[0][0], 3)
+        eq_(results[0][0], 5)
 
     def test_array_subtype_resultprocessor(self):
         arrtable = self.tables.arrtable