Skip to content

Commit

Permalink
Bypass HTTP redirect in aiohttp test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Dec 7, 2023
1 parent 1167789 commit 83a8f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/pypi/packages/aiohttp/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_basic(self):

async def main():
async with aiohttp.ClientSession() as session:
async with session.get('http://python.org') as response:
async with session.get('https://www.python.org/') as response:
self.assertEqual(200, response.status)
self.assertRegex(response.headers['content-type'], r"^text/html")

Expand Down

0 comments on commit 83a8f23

Please sign in to comment.