"""Tests for queues.py""" import asyncio import unittest from types import GenericAlias def tearDownModule(): asyncio.set_event_loop_policy(None) class QueueBasicTests(unittest.IsolatedAsyncioTestCase): async def _test_repr_or_str(self, fn, expect_id): """Test Queue's repr or str. fn is repr or str. expect_id is True if we expect the Queue's id to appear in fn(Queue()). """ q = asyncio.Queue() self.assertTrue(fn(q).startswith('