Skip to content

Commit

Permalink
Remove a left behind event loop reassignment from a test
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinghyrax committed Dec 23, 2024
1 parent 632cd36 commit a4dbbad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bandersnatch/tests/test_master.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import concurrent.futures
from pathlib import Path
from tempfile import gettempdir
Expand Down Expand Up @@ -74,7 +73,6 @@ async def test_master_doesnt_raise_if_serial_equal(master: Master) -> None:
@pytest.mark.asyncio
async def test_master_url_fetch(master: Master) -> None:
fetch_path = Path(gettempdir()) / "unittest_url_fetch"
master.loop = asyncio.get_running_loop()
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as thread_pool:
await master.url_fetch("https://unittest.org/asdf", fetch_path, thread_pool)
assert master.session.get.called
Expand Down

0 comments on commit a4dbbad

Please sign in to comment.