diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-06-02 12:46:45 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-06-02 12:46:45 -0400 |
commit | 7a4aa46ae49f3ddcdadd4f3f10ef9cbce1fbf9aa (patch) | |
tree | 4a9b059a98b367a9cce39079c0d467926ca86897 | |
parent | a8e7bb8782ca8fd858ac036082104b4ac2991cfc (diff) | |
download | sqlalchemy-7a4aa46ae49f3ddcdadd4f3f10ef9cbce1fbf9aa.tar.gz |
- don't raise for stray gc connection. this just happens
sometimes and it really breaks the build once this
error occurs.
Change-Id: I577c78d623b22a6429f8b083fe08821bc467eb7a
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index ea50c0738..bd1ccaa51 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -197,8 +197,9 @@ def _assert_no_stray_pool_connections(): # so the error doesn't at least keep happening. pool._refs.clear() _STRAY_CONNECTION_FAILURES = 0 - assert False, "Stray connection refused to leave "\ - "after gc.collect(): %s" % err + warnings.warn( + "Stray connection refused to leave " + "after gc.collect(): %s" % err) elif _STRAY_CONNECTION_FAILURES > 10: assert False, "Encountered more than 10 stray connections" _STRAY_CONNECTION_FAILURES = 0 |