I'm now getting one unit test failure, but I don't think it's my code,
so I'm pushing:
======================================================================
ERROR: @test loading .leo file with @file nodes
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 185, in
runTest
exec(script,d)
File "<string>", line 7, in <module>
File "/home/sps/Bzr/leo-editor/leo/core/leoGlobals.py", line 2440,
in openWithFileName
ok = g.handleOpenHooks(c,old_c,gui,fn,f,readAtFileNodesFlag)
File "/home/sps/Bzr/leo-editor/leo/core/leoGlobals.py", line 2503,
in handleOpenHooks
readAtFileNodesFlag=readAtFileNodesFlag) # closes file.
File "/home/sps/Bzr/leo-editor/leo/core/leoFileCommands.py", line
939, in open
silent=silent)
File "/home/sps/Bzr/leo-editor/leo/core/leoFileCommands.py", line
802, in getLeoFile
c.atFileCommands.readAll(c.rootVnode(),partialFlag=False)
File "/home/sps/Bzr/leo-editor/leo/core/leoAtFile.py", line 681, in
readAll
ok = at.read(p,force=force)
File "/home/sps/Bzr/leo-editor/leo/core/leoAtFile.py", line 531, in
read
thinFile =
at.readOpenFile(root,at.inputFile,fileName,deleteNodes=True)
File "/home/sps/Bzr/leo-editor/leo/core/leoAtFile.py", line 785, in
readOpenFile
lastLines = at.scanText4(theFile,fileName,root)
File "/home/sps/Bzr/leo-editor/leo/core/leoAtFile.py", line 1060, in
scanText4
func(s,i)
File "/home/sps/Bzr/leo-editor/leo/core/leoAtFile.py", line 1148, in
readStartNode
gnx,headline,i,level,ok = at.parseNodeSentinel(s,i,middle)
File "/home/sps/Bzr/leo-editor/leo/core/leoAtFile.py", line 1236, in
parseNodeSentinel
return gnx,headline,i,level,True
UnboundLocalError: local variable 'gnx' referenced before assignment
----------------------------------------------------------------------
On Jun 30, 12:41 pm, thyrsus <[email protected]> wrote:
> Sorry about that. I read somewhere that "instance < class" would be
> true if instance was an instance of class; when the test succeeded, I
> believed it. Oops. I'll be pushing in a moment (if all unit tests
> succeed).
>
> - Stephen
>
> On Jun 30, 7:22 am, "Edward K. Ream" <[email protected]> wrote:
>
> > 10 tests containing code such as the following fail on Python 3k with
> > the message:
>
> > TypeError: unorderable types
>
> > assert c.tangleCommands.root_list[0] < leo.core.leoTangle.tst_node,
> > "expected root_list[0] to be instance of tst_node, dir() is %s " %
> > repr(dir(c.tangleCommands.root_list[0]))
>
> > Please correct this on the trunk. Thanks.
>
> > Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
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.