]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
loosen up hash_limit test
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 11 Jun 2024 13:16:26 +0000 (09:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 11 Jun 2024 13:18:07 +0000 (09:18 -0400)
commite35549efb00abdd8627e87961bbc4b37c3de515d
tree1e9cb1b60cda15f0969d5cecbc457b4555f79a62
parent6a42b827766b00bfe56c6b163905fff0c1e8f140
loosen up hash_limit test

hash_limit_string works by doing a modulus of a hash value so that
the range of possible numbers is 0-N.  however, there's a chance
we might not populate every 0-N value in unusual cases on CI,
even after iterating 500 times apparently.  Loosen the change by making
sure we got at least N/2 unique hash messages but not greater
than N.

Change-Id: I5cd2845697ec0a718ddca1c95fbc4867b06eabee
(cherry picked from commit ef04a401100ff37915c281c412ed3d784565e429)
test/base/test_warnings.py