fix weird error change

This commit is contained in:
Conrad Ludgate
2025-07-28 12:16:06 +01:00
parent 3778081b7b
commit f9df93655f

View File

@@ -156,7 +156,7 @@ def test_auth_errors(static_proxy: NeonProxy):
with pytest.raises(psycopg2.Error) as exprinfo:
static_proxy.connect(user="pinocchio")
text = str(exprinfo.value).strip()
assert text.find("password authentication failed for user 'pinocchio'") != -1
assert text.find("password authentication failed for user \"pinocchio\"") != -1
static_proxy.safe_psql(
"create role pinocchio with login password 'magic'",