summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/suite/test_results.py
diff options
context:
space:
mode:
authorPat Buxton <patrick.buxton@tartansolutions.com>2018-04-16 10:06:13 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-04-16 10:06:13 -0400
commit5d5b9fe63d6d416bf21969bd1c27c1e1a754a2d3 (patch)
tree1e4df2b967e7512d1e63148eb3b4fe52316cd92a /lib/sqlalchemy/testing/suite/test_results.py
parenta3473c08d35e2cce32b014519df5f774c0166cf1 (diff)
downloadsqlalchemy-5d5b9fe63d6d416bf21969bd1c27c1e1a754a2d3.tar.gz
Fix - Order of records is not guaranteed
* Causes intermittent failure against Greenplum cluster * Tested using Greenplum dialact: https://github.com/PlaidCloud/sqlalchemy-greenplum Change-Id: I6387e98f17a3667612fdaaadb27a08f79ec46398 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/440
Diffstat (limited to 'lib/sqlalchemy/testing/suite/test_results.py')
-rw-r--r--lib/sqlalchemy/testing/suite/test_results.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_results.py b/lib/sqlalchemy/testing/suite/test_results.py
index c00e04657..f464d47eb 100644
--- a/lib/sqlalchemy/testing/suite/test_results.py
+++ b/lib/sqlalchemy/testing/suite/test_results.py
@@ -355,13 +355,13 @@ class ServerSideCursorsTest(fixtures.TestBase, testing.AssertsExecutionResults):
test_table.create(checkfirst=True)
test_table.insert().execute(data='data1')
test_table.insert().execute(data='data2')
- eq_(test_table.select().execute().fetchall(), [(1, 'data1'
- ), (2, 'data2')])
+ eq_(test_table.select().order_by(test_table.c.id).execute().fetchall(),
+ [(1, 'data1'), (2, 'data2')])
test_table.update().where(
test_table.c.id == 2).values(
data=test_table.c.data +
' updated').execute()
- eq_(test_table.select().execute().fetchall(),
+ eq_(test_table.select().order_by(test_table.c.id).execute().fetchall(),
[(1, 'data1'), (2, 'data2 updated')])
test_table.delete().execute()
eq_(select([func.count('*')]).select_from(test_table).scalar(), 0)