Skip to content

Commit ec0ed9b

Browse files
add more windows tests
1 parent 6a8e2bd commit ec0ed9b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Lib/test/test_asyncio/test_server_context.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
21
import asyncio
32
import contextvars
43
import unittest
4+
import sys
55

66
from unittest import TestCase
77

@@ -261,5 +261,12 @@ async def main():
261261
class AsyncioEventLoopTests(TestCase, ServerContextvarsTestCase):
262262
loop_factory = staticmethod(asyncio.new_event_loop)
263263

264+
if sys.platform == "win32":
265+
class AsyncioProactorEventLoopTests(TestCase, ServerContextvarsTestCase):
266+
loop_factory = asyncio.ProactorEventLoop
267+
268+
class AsyncioSelectorEventLoopTests(TestCase, ServerContextvarsTestCase):
269+
loop_factory = asyncio.SelectorEventLoop
270+
264271
if __name__ == "__main__":
265272
unittest.main()

0 commit comments

Comments
 (0)