Skip to content

Commit

Permalink
Use suggested fix in #683 to remove pytest ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh committed Nov 6, 2021
1 parent eff6c0d commit fc53a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proxy/core/acceptor/threadless.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def run(self) -> None:
try:
self.selector = selectors.DefaultSelector()
self.selector.register(self.client_queue, selectors.EVENT_READ)
self.loop = asyncio.get_event_loop()
self.loop = asyncio.get_event_loop_policy().get_event_loop()
while not self.running.is_set():
self.run_once()
except KeyboardInterrupt:
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ filterwarnings =
error

# FIXME: Address the deprecation warning in Python 3.10 and revert this ignore
ignore:There is no current event loop:DeprecationWarning:proxy.core.acceptor.threadless
# ignore:There is no current event loop:DeprecationWarning:proxy.core.acceptor.threadless

junit_duration_report = call
# xunit1 contains more metadata than xunit2 so it's better for CI UIs:
Expand Down

0 comments on commit fc53a58

Please sign in to comment.