[pygobject/benzea/gio-asyncio] test



commit 8fd611e13ae0680ccb6a1b775a33f1be57d8a2b6
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Nov 17 15:48:18 2021 +0100

    test

 tests/test_events.py | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/tests/test_events.py b/tests/test_events.py
index 8fc4de4d..daba6722 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -63,6 +63,13 @@ if sys.platform != 'win32':
 
                     self.assertEqual(warns, [])
 
+        def test_popen_error_with_stdin_pipe(self):
+            # Issue #35721: check that newly created socket pair is closed when
+            # Popen fails
+            print(self.loop)
+            self.loop.run_until_complete(
+                self._test_popen_error(stdin=subprocess.PIPE))
+
         def setUp(self):
             super().setUp()
             policy = gi.events.GLibEventLoopPolicy()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]