summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-01-23 18:30:37 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-01-23 18:31:07 -0500
commit926784f51361f510fffcc192bdbde78ff2189438 (patch)
treea06fbf2916518cbad8730fcdeb0a3aef4b914e3c
parent2419bfe34cd5a1f4ead67d556ba74f3f1950762b (diff)
downloadsqlalchemy-926784f51361f510fffcc192bdbde78ff2189438.tar.gz
- fix array test that was essentially taking a weird guess
at the primary key of a row based on other tests invoking around it (cherry picked from commit 7d70dfd412c05fd8349339da01b472bd3df02082)
-rw-r--r--test/dialect/postgresql/test_types.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dialect/postgresql/test_types.py b/test/dialect/postgresql/test_types.py
index f8c5c1c48..50b66f290 100644
--- a/test/dialect/postgresql/test_types.py
+++ b/test/dialect/postgresql/test_types.py
@@ -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