[issue1328851] pclose raises spurious exception on win32

Joseph Armbruster report at bugs.python.org
Thu Dec 20 16:44:24 CET 2007


Joseph Armbruster added the comment:

Here's some other quick tests for posterity:

TEST 1 [from a downloaded msi from a while ago]

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> p = os.popen("net share <nul:")
>>> print p.read()
The Server service is not started.

Is it OK to start it? (Y/N) [Y]:

>>> p.close()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 0] Error
>>>

TEST 2

Python 3.0a2 (py3k:59579M, Dec 20 2007, 08:46:46) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> p = os.popen("net share <nul:")
>>> print(p.read())
No valid response was provided.
The Server service is not started.

Is it OK to start it? (Y/N) [Y]:

>>> p.close()
-256

----------
nosy: +JosephArmbruster

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1328851>
_____________________________________


More information about the Python-bugs-list mailing list