diff options
author | jonathan vanasco <jonathan@2xlp.com> | 2020-08-24 18:53:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-08-29 12:05:58 -0400 |
commit | 672087176eaf3d0e867c6b5c67bfea3c713be42e (patch) | |
tree | 659bc160dd94230c6fc94189617f414122de241d /test/engine/test_pool.py | |
parent | 317f2e1be2b06cdc12bc84510eb743d9752763dd (diff) | |
download | sqlalchemy-672087176eaf3d0e867c6b5c67bfea3c713be42e.tar.gz |
internal test framework files for standardization of is_not/not_in;
this is safe for 1.3.x
Change-Id: Icba38fdc20f5d8ac407383a4278ccb346e09af38
Diffstat (limited to 'test/engine/test_pool.py')
-rw-r--r-- | test/engine/test_pool.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index 278a6cada..92d1d1d33 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -15,7 +15,7 @@ from sqlalchemy.testing import assert_raises_message from sqlalchemy.testing import eq_ from sqlalchemy.testing import fixtures from sqlalchemy.testing import is_ -from sqlalchemy.testing import is_not_ +from sqlalchemy.testing import is_not from sqlalchemy.testing import is_true from sqlalchemy.testing.engines import testing_engine from sqlalchemy.testing.mock import ANY @@ -151,7 +151,7 @@ class PoolTest(PoolTestBase): self.assert_("foo2" in c.info) c2 = p.connect() - is_not_(c.connection, c2.connection) + is_not(c.connection, c2.connection) assert not c2.info assert "foo2" in c.info @@ -215,7 +215,7 @@ class PoolTest(PoolTestBase): c2 = r1.get_connection() - is_not_(c1, c2) + is_not(c1, c2) is_(c2, r1.connection) eq_(c2.mock_calls, []) @@ -1203,7 +1203,7 @@ class QueuePoolTest(PoolTestBase): mock.return_value = 10035 c3 = p.connect() - is_not_(c3.connection, c_ref()) + is_not(c3.connection, c_ref()) @testing.requires.timing_intensive def test_recycle_on_invalidate(self): @@ -1221,7 +1221,7 @@ class QueuePoolTest(PoolTestBase): time.sleep(0.5) c3 = p.connect() - is_not_(c3.connection, c_ref()) + is_not(c3.connection, c_ref()) @testing.requires.timing_intensive def test_recycle_on_soft_invalidate(self): @@ -1244,7 +1244,7 @@ class QueuePoolTest(PoolTestBase): c2.close() c3 = p.connect() - is_not_(c3.connection, c_ref()) + is_not(c3.connection, c_ref()) is_(c3._connection_record, c2_rec) is_(c2_rec.connection, c3.connection) |