You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/benjaminp'closed_at=<Date2009-02-20.03:20:12.472>created_at=<Date2009-02-19.04:16:22.822>labels= []
title='errno not being set'updated_at=<Date2009-02-20.03:20:12.471>user='https://github.com/benjaminp'
deftest_leaking_fds_on_error(self):
# see bug python/cpython#49429: Popen leaks file descriptors to PIPEs if# the child fails to execute; this will eventually exhaust# the maximum number of open fds. 1024 seems a very common# value for that limit, but Windows has 2048, so we loop# 1024 times (each call leaked two fds).foriinrange(1024):
try:
subprocess.Popen(['nonexisting_i_hope'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
# Windows raises IOErrorexcept (IOError, OSError) aserr:
self.assertEqual(err.errno, 2)
This test is failing in py3k because errno is not being set on the
exception and is None. I don't have time to investigate more at the moment.
Activity
benjaminp commentedon Feb 19, 2009
This test is failing in py3k because errno is not being set on the
exception and is None. I don't have time to investigate more at the moment.
birkenfeld commentedon Feb 19, 2009
The problem is in os.py. This patch fixes it:
Index: Lib/os.py
===================================================================
I suspect there may be other instances of this problem (I guess 2to3
converted that).
benjaminp commentedon Feb 20, 2009
Thanks for the diagnostic, Georg! Fixed in r69794.