On Thu, Aug 20, 2009 at 3:09 PM, Chris Laux <[email protected]> wrote:

>
>
>
> Yes, fresh checkout from http://los-cocos.googlecode.com/svn/trunk/.
> Here's
> the tracebacks:
>
> ch...@laptop:~/newcocos/cocos2d/test> python test_tiles.py
> Traceback (most recent call last):
>  File "test_tiles.py", line 38, in <module>
>    test_layer = tiles.load('road-map.xml')['map0']
>  File "../cocos/tiles.py", line 374, in load
>    obj = Resource(filename, paths)
>  File "../cocos/tiles.py", line 258, in __init__
>    self.handle(root)
>  File "../cocos/tiles.py", line 294, in handle
>    return self.factories[tag.tag](self, tag)
>  File "../cocos/tiles.py", line 273, in resource_factory
>    self.handle(child)
>  File "../cocos/tiles.py", line 294, in handle
>    return self.factories[tag.tag](self, tag)
>  File "../cocos/tiles.py", line 557, in rectmap_factory
>    m = RectMapLayer(id, width, height, cells, origin, properties)
>  File "../cocos/tiles.py", line 853, in __init__
>    RectMapLayer.__init__(self, properties)
> TypeError: __init__() takes at least 5 arguments (2 given)
>
>
> ch...@laptop:~/newcocos/cocos2d/test> python test_tiles_model.py
> Traceback (most recent call last):
>  File "test_tiles_model.py", line 13, in <module>
>    from cocos.tiles import Rect, RectCell, RectMap, HexCell, HexMap, Tile
> ImportError: cannot import name Rect
> ch...@laptop:~/newcocos/cocos2d/test> python test_tiles.py
> Traceback (most recent call last):
>  File "test_tiles.py", line 38, in <module>
>    test_layer = tiles.load('road-map.xml')['map0']
>  File "../cocos/tiles.py", line 374, in load
>    obj = Resource(filename, paths)
>  File "../cocos/tiles.py", line 258, in __init__
>    self.handle(root)
>  File "../cocos/tiles.py", line 294, in handle
>    return self.factories[tag.tag](self, tag)
>  File "../cocos/tiles.py", line 273, in resource_factory
>    self.handle(child)
>  File "../cocos/tiles.py", line 294, in handle
>    return self.factories[tag.tag](self, tag)
>  File "../cocos/tiles.py", line 557, in rectmap_factory
>    m = RectMapLayer(id, width, height, cells, origin, properties)
>  File "../cocos/tiles.py", line 853, in __init__
>    RectMapLayer.__init__(self, properties)
> TypeError: __init__() takes at least 5 arguments (2 given)
>
>
> --
> -chris
>
>
>

Yes, indeed.
Here the two test fails, but one with an assertion error:

D:\cocos_pristine\los-cocos-read-only\test>c:\python26\python.exe
test_tiles.py
using pyglet 1.1.3 stock
--- using cocos svn ---
Traceback (most recent call last):
File "test_tiles.py", line 38, in <module>
test_layer = tiles.load('road-map.xml')['map0']
File "..\cocos\tiles.py", line 374, in load
obj = Resource(filename, paths)
File "..\cocos\tiles.py", line 258, in __init__
self.handle(root)
File "..\cocos\tiles.py", line 294, in handle
return self.factories[tag.tag](self, tag)
File "..\cocos\tiles.py", line 273, in resource_factory
self.handle(child)
File "..\cocos\tiles.py", line 294, in handle
return self.factories[tag.tag](self, tag)
File "..\cocos\tiles.py", line 557, in rectmap_factory
m = RectMapLayer(id, width, height, cells, origin, properties)
File "..\cocos\tiles.py", line 853, in __init__
RectMapLayer.__init__(self, properties)
TypeError: __init__() takes at least 5 arguments (2 given)

D:\cocos_pristine\los-cocos-read-only\test>c:\python26\python.exe
test_tiles_mod
el.py
--- using cocos svn ---
using pyglet 1.1.3 stock
...F....
======================================================================
FAIL: test_hex_pixel (__main__.MapModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_tiles_model.py", line 294, in test_hex_pixel
assert t is None
AssertionError

----------------------------------------------------------------------
Ran 8 tests in 0.016s

FAILED (failures=1)

D:\cocos_pristine\los-cocos-read-only\test>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to