| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -101,11 +101,14 @@ async def main(expected): | |||
| 101 | 101 | loop = asyncio.get_event_loop() | |
| 102 | 102 | self.assertIs(loop.get_debug(), expected) | |
| 103 | 103 | ||
| 104 | - asyncio.run(main(False)) | ||
| 104 | + asyncio.run(main(False), debug=False) | ||
| 105 | 105 | asyncio.run(main(True), debug=True) | |
| 106 | 106 | with mock.patch('asyncio.coroutines._is_debug_mode', lambda: True): | |
| 107 | 107 | asyncio.run(main(True)) | |
| 108 | 108 | asyncio.run(main(False), debug=False) | |
| 109 | + with mock.patch('asyncio.coroutines._is_debug_mode', lambda: False): | ||
| 110 | + asyncio.run(main(True), debug=True) | ||
| 111 | + asyncio.run(main(False)) | ||
| 109 | 112 | ||
| 110 | 113 | def test_asyncio_run_from_running_loop(self): | |
| 111 | 114 | async def main(): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments