diff tests/test-hglib.py @ 62:d1f57f162274

closefds on posix when using subprocess see added test for a clarification on why this is needed
author Idan Kamara <idankk86@gmail.com>
date Fri, 19 Aug 2011 22:24:14 +0300
parents
children 1b47146a4a2c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-hglib.py	Fri Aug 19 22:24:14 2011 +0300
@@ -0,0 +1,14 @@
+import common, hglib
+
+class test_hglib(common.basetest):
+    def setUp(self):
+        pass
+
+    def test_close_fds(self):
+        """
+        A weird Python bug that has something to do to inherited file descriptors,
+        see http://bugs.python.org/issue12786
+        """
+        common.basetest.setUp(self)
+        client2 = hglib.open()
+        self.client.close()