Skip to content

Commit b3002e3

Browse files
committed
Force string in get_user_agent for test network session
1 parent 7eebf11 commit b3002e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_network_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_user_agent() -> str:
2828
# These tests are testing the computation of the user agent, so we want to
2929
# avoid reusing cached values.
3030
user_agent.cache_clear()
31-
return PipSession().headers["User-Agent"]
31+
return str(PipSession().headers["User-Agent"])
3232

3333

3434
def test_user_agent() -> None:

0 commit comments

Comments
 (0)