test_doctests stderr

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: 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:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
Building topology for vector map <vector_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

21 primitives registered
41 vertices registered
Building areas...
0..4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
4 areas built
2 isles built
Attaching islands...
50..100
Attaching centroids...
4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
Number of nodes: 15
Number of primitives: 21
Number of points: 3
Number of lines: 3
Number of boundaries: 11
Number of centroids: 4
Number of areas: 4
Number of isles: 2
Building topology for vector map <abstract_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

21 primitives registered
41 vertices registered
Building areas...
0..4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
4 areas built
2 isles built
Attaching islands...
50..100
Attaching centroids...
4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
Number of nodes: 15
Number of primitives: 21
Number of points: 3
Number of lines: 3
Number of boundaries: 11
Number of centroids: 4
Number of areas: 4
Number of isles: 2
Building topology for vector map <geometry_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

21 primitives registered
41 vertices registered
Building areas...
0..4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
4 areas built
2 isles built
Attaching islands...
50..100
Attaching centroids...
4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
Number of nodes: 15
Number of primitives: 21
Number of points: 3
Number of lines: 3
Number of boundaries: 11
Number of centroids: 4
Number of areas: 4
Number of isles: 2
Building topology for vector map <find_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

21 primitives registered
41 vertices registered
Building areas...
0..4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
4 areas built
2 isles built
Attaching islands...
50..100
Attaching centroids...
4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
Number of nodes: 15
Number of primitives: 21
Number of points: 3
Number of lines: 3
Number of boundaries: 11
Number of centroids: 4
Number of areas: 4
Number of isles: 2
Building topology for vector map <table_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

21 primitives registered
41 vertices registered
Building areas...
0..4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
4 areas built
2 isles built
Attaching islands...
50..100
Attaching centroids...
4..9..14..19..23..28..33..38..42..47..52..57..61..66..71..76..80..85..90..95..100
Number of nodes: 15
Number of primitives: 21
Number of points: 3
Number of lines: 3
Number of boundaries: 11
Number of centroids: 4
Number of areas: 4
Number of isles: 2
.etc/python/grass/pygrass/vector/geometry.py:1306: 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:1627: 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...
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...

2 primitives registered
2 vertices registered
Building areas...
0..50..100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
50..100
Number of nodes: 0
Number of primitives: 2
Number of points: 2
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
.........WARNING: Vector map <vector_doctest_map> already exists and will be overwritten
Building topology for vector map <vector_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

2 primitives registered
2 vertices registered
Building areas...
0..50..100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
50..100
Number of nodes: 0
Number of primitives: 2
Number of points: 2
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
Building topology for vector map <vector_doctest_map@__lib_python_pygrass_vector_test_doctests>...
Registering primitives...

2 primitives registered
2 vertices registered
Building areas...
0..50..100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
50..100
Number of nodes: 0
Number of primitives: 2
Number of points: 2
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
FFF...................................................................................
======================================================================
FAIL: rewrite (grass.pygrass.vector.VectorTopo)
Doctest: grass.pygrass.vector.VectorTopo.rewrite
----------------------------------------------------------------------
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.rewrite
  File "etc/python/grass/pygrass/vector/__init__.py", line 24, in rewrite

----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 56, in grass.pygrass.vector.VectorTopo.rewrite
Failed example:
    test_vect.rewrite(point2, cat=1, attrs('Irish Pub'))
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.VectorTopo.rewrite[12]>", line 1
    SyntaxError: non-keyword arg after keyword arg
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 63, in grass.pygrass.vector.VectorTopo.rewrite
Failed example:
    test_vect[1] == point2
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 65, in grass.pygrass.vector.VectorTopo.rewrite
Failed example:
    test_vect[1].attrs['name'] == 'Irish Pub'
Expected:
    True
Got:
    False


======================================================================
FAIL: table_to_dict (grass.pygrass.vector.VectorTopo)
Doctest: grass.pygrass.vector.VectorTopo.table_to_dict
----------------------------------------------------------------------
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.table_to_dict
  File "etc/python/grass/pygrass/vector/__init__.py", line 24, in table_to_dict

----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 36, in grass.pygrass.vector.VectorTopo.table_to_dict
Failed example:
    test_vect.table_to_dict()
Expected:
    {1: [1, u'point', 1.0], 2: [2, u'line', 2.0], 3: [3, u'centroid', 3.0]}
Got:
    {1: [1, u'pub'], 2: [2, u'resturant']}
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 39, in grass.pygrass.vector.VectorTopo.table_to_dict
Failed example:
    test_vect.table_to_dict(where="value > 2")
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.VectorTopo.table_to_dict[5]>", line 1, in <module>
        test_vect.table_to_dict(where="value > 2")
      File "etc/python/grass/pygrass/errors.py", line 15, in wrapper
        return method(self, *args, **kargs)
      File "etc/python/grass/pygrass/vector/__init__.py", line 665, in table_to_dict
        cur = self.table.execute()
      File "etc/python/grass/pygrass/vector/table.py", line 1084, in execute
        "SQL error: %s" % (sqlc, values, str(exc)))
    ValueError: The SQL statement is not correct:
    u'SELECT cat,name FROM newvect WHERE value > 2 ORDER BY cat;',
    values: None,
    SQL error: no such column: value
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 42, in grass.pygrass.vector.VectorTopo.table_to_dict
Failed example:
    test_vect.table_to_dict(where="value > 0")
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.VectorTopo.table_to_dict[6]>", line 1, in <module>
        test_vect.table_to_dict(where="value > 0")
      File "etc/python/grass/pygrass/errors.py", line 15, in wrapper
        return method(self, *args, **kargs)
      File "etc/python/grass/pygrass/vector/__init__.py", line 665, in table_to_dict
        cur = self.table.execute()
      File "etc/python/grass/pygrass/vector/table.py", line 1084, in execute
        "SQL error: %s" % (sqlc, values, str(exc)))
    ValueError: The SQL statement is not correct:
    u'SELECT cat,name FROM newvect WHERE value > 0 ORDER BY cat;',
    values: None,
    SQL error: no such column: value
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 45, in grass.pygrass.vector.VectorTopo.table_to_dict
Failed example:
    test_vect.table.filters.get_sql()
Expected:
    u'SELECT cat,name,value FROM vector_doctest_map WHERE value > 0 ORDER BY cat;'
Got:
    u'SELECT cat,name FROM newvect WHERE value > 0 ORDER BY cat;'


======================================================================
FAIL: viter (grass.pygrass.vector.VectorTopo)
Doctest: grass.pygrass.vector.VectorTopo.viter
----------------------------------------------------------------------
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.viter
  File "etc/python/grass/pygrass/vector/__init__.py", line 24, in viter

----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 39, in grass.pygrass.vector.VectorTopo.viter
Failed example:
    areas[:3]
Expected:
    [Area(1), Area(2), Area(3)]
Got:
    []
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 47, in grass.pygrass.vector.VectorTopo.viter
Failed example:
    for area in areas[:3]:
        print(area, area.area())
Expected:
    Area(1) 12.0
    Area(2) 8.0
    Area(4) 8.0
Got nothing
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/__init__.py", line 54, in grass.pygrass.vector.VectorTopo.viter
Failed example:
    for area in areas:
        print(area.centroid().cat)
Expected:
    3
    3
    3
    3
Got nothing


----------------------------------------------------------------------
Ran 99 tests in 1.099s
FAILED (failures=3)