test_doctests stderr
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:14: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:21: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
from . import umath
/usr/lib/python2.7/dist-packages/numpy/random/__init__.py:99: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
from .mtrand import *
etc/python/grass/pygrass/vector/__init__.py:189: DeprecationWarning: Vector.write(geo_obj, attrs=(...)) is depreciated, specify cat explicitly
DeprecationWarning)
Building topology for vector map <vector_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
Building areas...
0..9..18..27..36..45..54..63..72..81..90..100
Attaching islands...
0..50..100
Attaching centroids...
0..25..50..75..100
Building topology for vector map <abstract_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
Building areas...
0..9..18..27..36..45..54..63..72..81..90..100
Attaching islands...
0..50..100
Attaching centroids...
0..25..50..75..100
Building topology for vector map <geometry_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
Building areas...
0..9..18..27..36..45..54..63..72..81..90..100
Attaching islands...
0..50..100
Attaching centroids...
0..25..50..75..100
Building topology for vector map <find_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
Building areas...
0..9..18..27..36..45..54..63..72..81..90..100
Attaching islands...
0..50..100
Attaching centroids...
0..25..50..75..100
Building topology for vector map <table_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
Building areas...
0..9..18..27..36..45..54..63..72..81..90..100
Attaching islands...
0..50..100
Attaching centroids...
0..25..50..75..100
.etc/python/grass/pygrass/vector/geometry.py:1307: DeprecationWarning: comparing unequal types not supported in 3.x
self.dir = libvect.GV_FORWARD if v_id > 0 else libvect.GV_BACKWARD
./usr/lib/python2.7/xml/etree/ElementTree.py:1638: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target.
DeprecationWarning,
Option <column> given, assuming <use=attr>...
Converting color rules into categories...
0..33..66..100
Writing color rules...
Color table for vector map <mytest_vect@__lib_python_pygrass_vector_test_doctests> set to 'population'
..Building topology for vector map <newvect@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
......F..Building topology for vector map <newvect_2@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
Building topology for vector map <newvect_2@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...
....................................................F.......................F.F.......
======================================================================
FAIL: number_of (grass.pygrass.vector.VectorTopo)
Doctest: grass.pygrass.vector.VectorTopo.number_of
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.vector.VectorTopo.number_of
File "etc/python/grass/pygrass/vector/__init__.py", line 24, in number_of
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 42, in grass.pygrass.vector.VectorTopo.number_of
Failed example:
test_vect.number_of("lines")
Expected:
21
Got:
3
======================================================================
FAIL: Point (grass.pygrass.vector.geometry)
Doctest: grass.pygrass.vector.geometry.Point
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.vector.geometry.Point
File "etc/python/grass/pygrass/vector/geometry.py", line 394, in Point
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/geometry.py", line 415, in grass.pygrass.vector.geometry.Point
Failed example:
print(pnt)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest grass.pygrass.vector.geometry.Point[9]>", line 1, in <module>
print(pnt)
TypeError: __str__ returned non-string (type String)
======================================================================
FAIL: Link (grass.pygrass.vector.table)
Doctest: grass.pygrass.vector.table.Link
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.vector.table.Link
File "etc/python/grass/pygrass/vector/table.py", line 580, in Link
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 590, in grass.pygrass.vector.table.Link
Failed example:
link.name
Expected:
'link0'
Got:
u'link0'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 592, in grass.pygrass.vector.table.Link
Failed example:
link.table_name
Expected:
'table_doctest_map'
Got:
u'table_doctest_map'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 594, in grass.pygrass.vector.table.Link
Failed example:
link.key
Expected:
'cat'
Got:
u'cat'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 596, in grass.pygrass.vector.table.Link
Failed example:
link.database
Expected:
'$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
Got:
u'$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 598, in grass.pygrass.vector.table.Link
Failed example:
link.driver
Expected:
'sqlite'
Got:
u'sqlite'
======================================================================
FAIL: connection (grass.pygrass.vector.table.Link)
Doctest: grass.pygrass.vector.table.Link.connection
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for grass.pygrass.vector.table.Link.connection
File "etc/python/grass/pygrass/vector/table.py", line 731, in connection
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 739, in grass.pygrass.vector.table.Link.connection
Failed example:
link.table_name
Expected:
'table_doctest_map'
Got:
u'table_doctest_map'
----------------------------------------------------------------------
Ran 99 tests in 0.986s
FAILED (failures=4)