summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/assertions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-01-24 15:34:27 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2023-01-24 15:34:27 -0500
commit90f4b5d84f248d95f3df38e74be92b23fd880e42 (patch)
tree4f7a3d8aa3c354be36ed697c8de0d4646e8c985c /lib/sqlalchemy/testing/assertions.py
parent4d2f24e524c99d8255f451476679f5fa93647ad4 (diff)
downloadsqlalchemy-90f4b5d84f248d95f3df38e74be92b23fd880e42.tar.gz
fix stringify for CreateSchema
Fixed stringify for a the :class:`.CreateSchema` DDL construct, which would fail with an ``AttributeError`` when stringified without a dialect. Fixes: #7664 Change-Id: Ifc1769604bc5219c060f5112f7bdea0f780f1a1c
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r--lib/sqlalchemy/testing/assertions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py
index 0effcbd06..5dd32e8cc 100644
--- a/lib/sqlalchemy/testing/assertions.py
+++ b/lib/sqlalchemy/testing/assertions.py
@@ -327,8 +327,10 @@ def startswith_(a, fragment, msg=None):
def eq_ignore_whitespace(a, b, msg=None):
a = re.sub(r"^\s+?|\n", "", a)
a = re.sub(r" {2,}", " ", a)
+ a = re.sub(r"\t", "", a)
b = re.sub(r"^\s+?|\n", "", b)
b = re.sub(r" {2,}", " ", b)
+ b = re.sub(r"\t", "", b)
assert a == b, msg or "%r != %r" % (a, b)