Skip to content

Commit d470a3a

Browse files
committed
Workaround f-string issues in old versions of Python.
1 parent e7d82ee commit d470a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/example-pytest-selfie/tests/selfie_settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def web_selfie(response: TestResponse) -> StringSelfie:
1313
redirect_reason = REDIRECTS.get(response.status_code)
1414
if redirect_reason is not None:
1515
actual = Snapshot.of(
16-
f"REDIRECT {response.status_code} {redirect_reason} to {response.headers.get("Location")}"
16+
f"REDIRECT {response.status_code} {redirect_reason} to "
17+
+ response.headers.get("Location")
1718
)
1819
else:
1920
actual = Snapshot.of(response.data.decode()).plus_facet(

0 commit comments

Comments
 (0)