]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix double is_none()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 04:34:11 +0000 (23:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 04:34:11 +0000 (23:34 -0500)
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

lib/sqlalchemy/testing/assertions.py

index 40549f54c5ddcceec49c71dbe4b5727a69dcef63..f2ed91b79376daf8d8bc78acbf90b03aa306b79f 100644 (file)
@@ -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)