diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-12-21 10:22:43 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-03 13:22:29 -0500 |
commit | fd3c063dd68b289814af724689165418de5e4408 (patch) | |
tree | 3a13c1cd3bd58b8b5b88bc3294e491aca63ecf0b /lib/sqlalchemy/testing/assertions.py | |
parent | dd41a5e61a30a2d05ee09f583fdfde1f1c204807 (diff) | |
download | sqlalchemy-fd3c063dd68b289814af724689165418de5e4408.tar.gz |
remove metadata.bind use from test suite
importantly this means we can remove bound metadata from
the fixtures that are used by Alembic's test suite.
hopefully this is the last one that has to happen to allow
Alembic to be fully 1.4/2.0.
Start moving from @testing.provide_metadata to a pytest
metadata fixture. This does not seem to have any negative
effects even though TablesTest uses a "self.metadata" attribute.
Change-Id: Iae6ab95938a7e92b6d42086aec534af27b5577d3
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index 17a0acf20..8c22b047e 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -225,11 +225,11 @@ def is_instance_of(a, b, msg=None): def is_true(a, msg=None): - is_(a, True, msg=msg) + is_(bool(a), True, msg=msg) def is_false(a, msg=None): - is_(a, False, msg=msg) + is_(bool(a), False, msg=msg) def is_(a, b, msg=None): |