Re: [IronPython] Error only from Test Case

2008-10-23 Thread Matt Beckius
> http://www.mail-archive.com/users@lists.ironpython.com/msg07328.html > > > > Running the same code outside of NUnit or NDepend should work. > > > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Matt Beckius > *Sent:* Thursday, O

[IronPython] Error only from Test Case

2008-10-23 Thread Matt Beckius
The test below fails (see stacktrace). If I take the exact same code and execute from a running program,it works just fine. Any suggestions, TIA Matt B. [Test] public void Statements() { var e = new IPEngine(); e.Scope.SetVariable("x","testing");

Re: [IronPython] Getting a line number of error (RC2)

2006-08-23 Thread Matt Beckius
That approach is working fine.   Thanks,     On 8/22/06, Dino Viehland <[EMAIL PROTECTED]> wrote: After looking into this a little more I've opened CodePlex bug #2409 to track this.  http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=2409     Let me know how well that

Re: [IronPython] Getting a line number of error (RC2)

2006-08-22 Thread Matt Beckius
calling sys.exc_info).  Are you concerned that the default traceback display doesn't show the line number?At 01:44 PM 8/21/2006, Matt Beckius wrote No 32bit.  I tried manually setting the TraceBackSupport, but still got the same result: IronPython 1.0.60816 on .NET 2.0.50727.42Copyright (c) Micros

Re: [IronPython] Getting a line number of error (RC2)

2006-08-21 Thread Matt Beckius
No 32bit.  I tried manually setting the TraceBackSupport, but still got the same result:   IronPython 1.0.60816 on .NET 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.>>> import IronPython>> IronPython.Compiler.Options.TraceBackSupport = True >>> def Test():... print "

[IronPython] Getting a line number of error (RC2)

2006-08-21 Thread Matt Beckius
Trying to get the line number of an error.  CPython produces:   Python 2.4.2 (#67, Sep 28 2005, 12:41:11)Type "help", "copyright", "credits" or "li>>> def test():... print "hi"... int("hi") ...>>> test()hiTraceback (most recent call last):  File "", line 1, in ?  File "", line 3, in testVal

[IronPython] list of lambdas only evaluates first expression

2006-01-09 Thread Matt Beckius
>>> l = [lambda x : x**2, lambda y : y**3, lambda z : z**4]>>> for x in l :  print x(2)444   Matt B.-- Matt Beckius610.308.8827 ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com