bpo-26133: Fix typos (#5010)
* Fix typos
* Change warning text
* Add test
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index 5d6a3c0..4f6beb4 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -56,9 +56,9 @@
self.remove_signal_handler(sig)
else:
if self._signal_handlers:
- warinigs.warn(f"Closing the loop {self!r} "
+ warnings.warn(f"Closing the loop {self!r} "
f"on interpreter shutdown "
- f"stage, signal unsubsription is disabled",
+ f"stage, skipping signal handlers removal",
ResourceWarning,
source=self)
self._signal_handlers.clear()