We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af4ab22 commit 575f71bCopy full SHA for 575f71b
tests/test_base.py
@@ -1,4 +1,5 @@
1
import asyncio
2
+import fcntl
3
import logging
4
import threading
5
import time
@@ -505,6 +506,12 @@ def test_loop_create_future(self):
505
506
self.assertIs(fut._loop, self.loop)
507
fut.cancel()
508
509
+ def test_loop_std_files_cloexec(self):
510
+ # See https://github.com/MagicStack/uvloop/issues/40 for details.
511
+ for fd in {0, 1, 2}:
512
+ flags = fcntl.fcntl(fd, fcntl.F_GETFD)
513
+ self.assertFalse(flags & fcntl.FD_CLOEXEC)
514
+
515
516
class TestBaseAIO(_TestBase, AIOTestCase):
517
pass
0 commit comments