Re: [IronPython] Prevention of SystemExit Dialog While Debugging

2010-08-30 Thread Jones, Larry
Dino, Thanks for the note. I agree that I do not want to check this usage, but since it is a prototype designed to help persuade others on the productivity of unit tests in IronPython, I think it is adequate. Have a great day! From: users-boun...@lists.ironpython.com [mailto:users-b

Re: [IronPython] Prevention of SystemExit Dialog While Debugging

2010-08-30 Thread Jones, Larry
Michael, Thanks for the information. My code calls unittest.main(). I could not locate the 2.7 version of unittest.main that accepted the exit=False parameter. I suspect it is in the CodePlex source code tree and not in the downloaded V7.2a1. I will probably utilize the solution sugges

Re: [IronPython] Prevention of SystemExit Dialog While Debugging

2010-08-30 Thread Michael Foord
On 31/08/2010 00:13, Jones, Larry wrote: I'm writing unit tests in IronPython. The implementation of unittest.main() calls sys.exit() when finished even if no testing errors occurred. Consequently, the Visual Studio debugger presents a dialog indicating that the SystemExit exception was unh

Re: [IronPython] Prevention of SystemExit Dialog While Debugging

2010-08-30 Thread Dino Viehland
import System System.Diagnostics.Debugger.IsAttached Will determine if the debugger is attached or not. Personally I hate code which checks this though but your usage sounds safe enough :) From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jones,

[IronPython] Prevention of SystemExit Dialog While Debugging

2010-08-30 Thread Jones, Larry
I'm writing unit tests in IronPython. The implementation of unittest.main() calls sys.exit() when finished even if no testing errors occurred. Consequently, the Visual Studio debugger presents a dialog indicating that the SystemExit exception was unhandled. Running from the console, I do not s

Re: [IronPython] Unittest Module Unavailable in V2.7a1

2010-08-30 Thread Michael Foord
On 30/08/2010 18:32, Jones, Larry wrote: Thanks, Michael, for the information. I copied the file unittest.py from my IronPython 2.6 installation to my IronPython 2.7 installation. It did seem to work, although discovering that in 2.7 unittest is a directory containing a number of other file

Re: [IronPython] Unittest Module Unavailable in V2.7a1

2010-08-30 Thread Jones, Larry
Thanks, Michael, for the information. I copied the file unittest.py from my IronPython 2.6 installation to my IronPython 2.7 installation. It did seem to work, although discovering that in 2.7 unittest is a directory containing a number of other files, was a bit disconcerting. I renamed the v2.

Re: [IronPython] Unittest Module Unavailable in V2.7a1

2010-08-30 Thread Michael Foord
On 30/08/2010 16:38, Jones, Larry wrote: My team is currently using VS2010 for work. I want to demonstrate that using IronPython as our "unit testing language" can be more productive than using either NUnit or Microsoft Test. In order to integrate with VS2010, I believe I must use IronPytho

[IronPython] Unittest Module Unavailable in V2.7a1

2010-08-30 Thread Jones, Larry
My team is currently using VS2010 for work. I want to demonstrate that using IronPython as our "unit testing language" can be more productive than using either NUnit or Microsoft Test. In order to integrate with VS2010, I believe I must use IronPython 2.7a1. I believe this is the only release t