From cd80a2a2e18a7d3b914f2e443a7aaa6986b93602 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Tue, 2 Nov 2021 11:30:00 +0100 Subject: [PATCH] Fix type of re.sub() call in sql tests All values of re.sub() must be of the type, here bytes. --- tests/test_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sql.py b/tests/test_sql.py index 46d78f9e6..4deac7e2a 100644 --- a/tests/test_sql.py +++ b/tests/test_sql.py @@ -555,6 +555,6 @@ def noe(s): if isinstance(s, str): return re.sub(r"\bE'", "'", s) elif isinstance(s, bytes): - return re.sub(br"\bE'", "'", s) + return re.sub(rb"\bE'", b"'", s) else: raise TypeError(f"not dealing with {type(s).__name__}: {s}") -- 2.47.2