File: 0001-set-event-loop.patch

package info (click to toggle)
python-logi-circle 0.2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: python: 1,686; xml: 16; sh: 5; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Edward Betts <edward@4angle.com>
Date: Thu, 25 Dec 2025 15:41:48 +0000
Subject: set event loop

---
 tests/test_base.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test_base.py b/tests/test_base.py
index 2d7cf02..0866b56 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -35,6 +35,7 @@ class LogiUnitTestBase(unittest.TestCase):
         self.cache_file = CACHE_FILE
 
         self.loop = asyncio.new_event_loop()
+        asyncio.set_event_loop(self.loop)
 
     def get_authorized_auth_provider(self):
         """Returns a pre-authorized AuthProvider instance"""