]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add order_by clause to make tests stable
authorJan <BY-jk@users.noreply.github.com>
Wed, 18 Oct 2017 01:23:19 +0000 (21:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Oct 2017 01:23:19 +0000 (21:23 -0400)
commit1de16235906e67fe112bcb31965b8f426ebccc6a
treeafe25fc5bf5a718107d3825a79f1ac80774724ee
parent1fbed902ede72e5a663b7e685843f0a8ed250c45
add order_by clause to make tests stable

I observed test runs that failed on 'test_bound_in_scalar' due to arbitrary ordering of the result set. The assertion not only tests for the elements to be present, but also for the correct ordering. Hence, the proposal to add an order_by clause to the select statements.

Change-Id: If1fbb864761e77dfd2a42ef857801c8aaf893bee
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/389
lib/sqlalchemy/testing/suite/test_select.py