[issue10762] strftime('%f') segfault

2010-12-24 Thread David Leonard
David Leonard added the comment: Agree that the patches from issue 4804 and wrapping strftime() to catch the invalid_parameter call would fix this: windbg trace: 0:000> k Child-SP RetAddr Call Site `0021f328 07fe`fdbb27cf ntdll!ZwTerminateProcess+0xa 0

[issue10762] strftime('%f') segfault

2010-12-23 Thread David Leonard
New submission from David Leonard : Installed http://www.python.org/ftp/python/2.7.1/python-2.7.1.amd64.msi on Windows 7, x64 into C:\Python27 C:\>\Python27\python.exe Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyri

[issue4444] unittest - use contexts to assert exceptions

2008-11-27 Thread David Leonard
New submission from David Leonard <[EMAIL PROTECTED]>: Patch to allow unit tests to test for exceptions through a 'with' statement. Resulting (failing) test would look like this: import unittest class T(unittest.TestCase): def runTest(self): with self.asser