Re: Unit testing problem

2008-04-05 Thread Edward K. Ream

 On Fri, Apr 4, 2008 at 3:49 PM, Kayvan A. Sylvan [EMAIL PROTECTED] wrote:

 The test button works as expected, but run-all-tests produces

  the following output in the Log pane:

  exception executing script
  AttributeError: 'NoneType' object has no attribute 'v'

The fixes to this, and several other unit testing problems are on the
trunk.

While I was at it, I added a disabled @test run-all-tests button to
test.leo, and I put tests that that should be disabled in @ignore
trees, or changed them to @@test nodes.

Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Unit testing problem

2008-04-05 Thread Kayvan A. Sylvan

On Sat, Apr 05, 2008 at 08:08:10AM -0700, Edward K. Ream wrote:
 The fixes to this, and several other unit testing problems are on the
 trunk.

Verified. Works perfectly. Thank you!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Unit testing problem

2008-04-04 Thread Kayvan A. Sylvan

Hi fellow Leo enthusiasts,

I am playing with unit testing some of my python code.

I created two buttons: test and run-all-tests. The code is as follows:

=== test ===
import leoTest
leoTest.doTests(c, all=False)
=== end test ===

=== run-all-tests ===
import leoTest
leoTest.doTests(c, all=True)
=== end run-all-tests ===

The test button works as expected, but run-all-tests produces
the following output in the Log pane:

exception executing script
AttributeError: 'NoneType' object has no attribute 'v'

  line 1270: return (
* line 1271: p1.v == p2.v and
  line 1272: p1.stack == p2.stack and
  line 1273: p1.childIndex() == p2.childIndex())

I am running the latest code from bzr.

---Kayvan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Unit testing problem

2008-04-04 Thread thyrsus

I think I saw the same thing doing Alt-4 in the unitTest.leo file, but
my screen saver had fired off in the middle of the tests, and I
attributed it to an errant extra mouse click, since when I lengthened
the screen saver timeout and the test ran uninterrupted, the problem
did not recur.  If you're seeing it repeatably, then you've got
something different.

- Stephen

On Apr 4, 4:49 pm, Kayvan A. Sylvan [EMAIL PROTECTED] wrote:
 Hi fellow Leo enthusiasts,

 I am playing with unit testing some of my python code.

 I created two buttons: test and run-all-tests. The code is as follows:

 === test ===
 import leoTest
 leoTest.doTests(c, all=False)
 === end test ===

 === run-all-tests ===
 import leoTest
 leoTest.doTests(c, all=True)
 === end run-all-tests ===

 The test button works as expected, but run-all-tests produces
 the following output in the Log pane:

 exception executing script
 AttributeError: 'NoneType' object has no attribute 'v'
 
   line 1270: return (
 * line 1271: p1.v == p2.v and
   line 1272: p1.stack == p2.stack and
   line 1273: p1.childIndex() == p2.childIndex())

 I am running the latest code from bzr.

 ---Kayvan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---