[pygobject/benzea/gio-asyncio] test
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/gio-asyncio] test
- Date: Wed, 17 Nov 2021 14:54:57 +0000 (UTC)
commit 902e873be6949033dd0e89d64ad6d7323f06e14e
Author: Benjamin Berg <bberg redhat com>
Date: Wed Nov 17 15:48:18 2021 +0100
test
tests/test_events.py | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/tests/test_events.py b/tests/test_events.py
index 8fc4de4d..470f1ebb 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -63,6 +63,14 @@ 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
+ import subprocess
+ 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]