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 *
/usr/lib/python2.7/posixpath.py:86: DeprecationWarning: in 3.x, __getslice__ has been removed; use __getitem__
head, tail = p[:i], p[i:]
etc/python/grass/pygrass/vector/__init__.py:187: 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...
.........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.................................
======================================================================
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)
----------------------------------------------------------------------
Ran 99 tests in 4.886s
FAILED (failures=1)