[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Dave Fugate
Dave Fugate dfug...@microsoft.com added the comment: I guarantee you that IronPython needs this. I was a tester on IronPython for four years, and saw hundreds of random failures due to this specific issue. My best, Dave -- ___ Python tracker rep

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Dave Fugate
New submission from Dave Fugate dfug...@microsoft.com: Using Python 2.7 (r27:82525, Jul 4 2010, 09:01:59; 32-bit Intel) on 64-bit Windows Server 2008 R2, python.exe (interactive sessions and files) crashes when it encounters the following snippet: import signal signal.signal(7, lambda a, b

[issue9326] Error message for incorrect number of (function) args is incorrect

2010-07-21 Thread Dave Fugate
New submission from Dave Fugate dfug...@microsoft.com: The error message below should state something along the lines of f() takes at least 1 non-keyword argument (0 given). Regardless, this is a regression from 2.6 which would have emitted f() takes at least 1 argument (0 given) which while

[issue9326] Error message for incorrect number of (function) args is incorrect

2010-07-21 Thread Dave Fugate
Dave Fugate dfug...@microsoft.com added the comment: Actually CPython 2.6 emits precisely what I'd expect: D:\rft\vsl\dlr\Languages\IronPython\Tests26 Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more

[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-10 Thread Dave Fugate
Dave Fugate dfug...@microsoft.com added the comment: platform.system()==Windows won't work unless you change platform as well: IronPython 2.6.1 DEBUG (2.6.10920.0) on .NET 2.0.50727.4927 Type help, copyright, credits or license for more information. import platform platform.system() 'cli

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-02-16 Thread Dave Fugate
New submission from Dave Fugate dfug...@microsoft.com: Sprinkled throughout CPython's test modules are snippets of code such as the following taken from 2.7A3's test_old_mailbox.py (line 141): box = mailbox.UnixMailbox(open(self._path, 'r')) The key thing to observe here is the file being