]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
raise ImportError when greenlet not installed
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Dec 2023 15:55:25 +0000 (10:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Dec 2023 18:21:52 +0000 (13:21 -0500)
commit54a4ac0eb9d79a4af3a3267561f4903314494b0f
tree22792f72914ce3c0e7d6a78104786b022c916777
parent2f972b6221ba271d16bbab5aa299a25f427a3710
raise ImportError when greenlet not installed

This is the runtime raise when an async concurrency function
is called.  in 2.0 this raises ValueError, however here we've
standardized on raising ``ImportError`.

continuing for #10747, add a test asserting we dont get an
endless loop and get a clean ImportError instead when greenlet not
installed and async functions are used.

Fixes: #10747
Change-Id: I54dffe8577025e2ef3a59f5ca9ab7f4362d4d91f
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/util/concurrency.py
test/base/test_concurrency.py