tpaviot/pythonocc — Issue #56: Testing jf/contrib
Author: tpaviot
Created: 2011-12-31 15:26:33+00:00
State: open

Compiled/installed/branch jf/contrib.

5 unittest fail:

======================================================================
ERROR: test that the == wrapper is ok
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/thomas/Devel/pythonocc/src/unittest/wrapper_features_unittest.py", line 283, in testEqOperator
res = items.index(line)
File "/Library/Python/2.6/site-packages/OCC/Utils/Construct.py", line 97, in gp_equal
return self.IsEqual(other, TOLERANCE)
TypeError: in method 'gp_Pnt_IsEqual', argument 2 of type 'gp_Pnt const'

======================================================================
ERROR: test_param2pnt (kbe_unittest.TestEdge_Line)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/thomas/Devel/pythonocc/src/unittest/kbe_unittest.py", line 22, in test_param2pnt
vert = self.edg.parameter_to_point(0.0)
File "/Library/Python/2.6/site-packages/OCC/KBE/edge.py", line 437, in parameter_to_point
return Vertex(*self.adaptor.Value(u).Coord())
File "/Library/Python/2.6/site-packages/OCC/KBE/vertex.py", line 29, in __init__
TopoDS_Vertex.__init__(self,self._vertex)
File "/Library/Python/2.6/site-packages/OCC/TopoDS.py", line 1039, in __init__
_TopoDS.TopoDS_Vertex_swiginit(self,_TopoDS.new_TopoDS_Vertex(*args))
TypeError: in method 'new_TopoDS_Vertex', argument 1 of type 'TopoDS_Vertex const'

======================================================================
ERROR: test_pnt2param (kbe_unittest.TestEdge_Line)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/thomas/Devel/pythonocc/src/unittest/kbe_unittest.py", line 26, in test_pnt2param
param, pnt = self.edg.project_pnt_on_edge(gp_Pnt())
AttributeError: 'Edge' object has no attribute 'project_pnt_on_edge'

======================================================================
ERROR: test_planar (kbe_unittest.TestFace_Sphere)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/thomas/Devel/pythonocc/src/unittest/kbe_unittest.py", line 84, in test_planar
is_planar, pln = self.face.is_planar()
TypeError: 'int' object is not iterable

======================================================================
ERROR: test_pnt (kbe_unittest.TestVertex_Point)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/thomas/Devel/pythonocc/src/unittest/kbe_unittest.py", line 97, in test_pnt
v1 = Vertex(1,1,1)
File "/Library/Python/2.6/site-packages/OCC/KBE/vertex.py", line 29, in __init__
TopoDS_Vertex.__init__(self,self._vertex)
File "/Library/Python/2.6/site-packages/OCC/TopoDS.py", line 1039, in __init__
_TopoDS.TopoDS_Vertex_swiginit(self,_TopoDS.new_TopoDS_Vertex(*args))
TypeError: in method 'new_TopoDS_Vertex', argument 1 of type 'TopoDS_Vertex const'

----------------------------------------------------------------------
Ran 83 tests in 1.727s

FAILED (errors=5)

In /KBE, there is a conflict between the _eq__ overloading and the new way C++ == operator is wrapped.