diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-14 23:34:11 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-14 23:34:11 -0500 |
commit | 6be06d85e598e4fda6f3d35084e1c5cccb30cee5 (patch) | |
tree | a3911600f847499a299a895725e2107b6c31b816 /lib/sqlalchemy/testing/assertions.py | |
parent | 41ca37734aa4f293ac5fb63c239d78185c8ec983 (diff) | |
download | sqlalchemy-6be06d85e598e4fda6f3d35084e1c5cccb30cee5.tar.gz |
fix double is_none()
I added an extra is_none() by mistake the other day and for
some reason it sneaked past flake8. it's breaking all the
builds so get it back in
Change-Id: I17b311341169571efa856e062c6be7e8f362618f
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index 40549f54c..f2ed91b79 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -228,6 +228,10 @@ def is_none(a, msg=None): is_(a, None, msg=msg) +def is_not_none(a, msg=None): + is_not(a, None, msg=msg) + + def is_true(a, msg=None): is_(bool(a), True, msg=msg) @@ -236,14 +240,6 @@ def is_false(a, msg=None): is_(bool(a), False, msg=msg) -def is_none(a, msg=None): - is_(a, None, msg=msg) - - -def is_not_none(a, msg=None): - is_not(a, None, msg=msg) - - def is_(a, b, msg=None): """Assert a is b, with repr messaging on failure.""" assert a is b, msg or "%r is not %r" % (a, b) |