1 Compatibility with Python 3.8, see upstream issue
2 https://github.com/rbarrois/aionotify/pull/15
4 diff --git a/setup.py b/setup.py
5 index 21a554f..094de64 100755
8 @@ -40,7 +40,7 @@ setup(
13 + 'asynctest; python_version<"3.8"',
16 "Development Status :: 4 - Beta",
17 diff --git a/tests/test_usage.py b/tests/test_usage.py
18 index f156291..0476ff1 100644
19 --- a/tests/test_usage.py
20 +++ b/tests/test_usage.py
21 @@ -8,7 +8,11 @@ import os.path
27 + testBase = unittest.IsolatedAsyncioTestCase
28 +except AttributeError:
30 + testBase = asynctest.TestCase
34 @@ -25,11 +29,13 @@ if AIODEBUG:
35 TESTDIR = os.environ.get('AIOTESTDIR') or os.path.join(os.path.dirname(__file__), 'testevents')
38 -class AIONotifyTestCase(asynctest.TestCase):
39 +class AIONotifyTestCase(testBase):
40 forbid_get_event_loop = True
44 + if not getattr (self, 'loop', None):
45 + self.loop = asyncio.get_event_loop()
47 self.loop.set_debug(True)
48 self.watcher = aionotify.Watcher()