❌ Test failed
Test | test_geometry_attrs |
Testsuite | ./lib/python/pygrass/vector |
Test file | ./lib/python/pygrass/vector/testsuite/test_geometry_attrs.py |
Status | FAILED |
Return code | 1 |
Number of tests | 2 |
Successful tests | 1 |
Failed tests | 1 |
Percent successful | 50% |
Test duration | 0:00:01.085965 |
/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
etc/python/grass/lib/gis.py:801: DeprecationWarning: classic int division
('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
Building topology for vector map <GeometryAttrsCase_map@__lib_python_pygrass_vector_test_geometry_attrs>...
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
lib/python/pygrass/vector/testsuite/test_geometry_attrs.py:57: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.assertEqual(cm.exception.message,
F./usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated. Define doctype() method on the TreeBuilder target.
DeprecationWarning,
======================================================================
FAIL: test_getitem (__main__.GeometryAttrsTestCase)
Test __getitem__ magic method
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/python/pygrass/vector/testsuite/test_geometry_attrs.py", line 58, in test_getitem
u"The SQL is not correct:\n"
AssertionError: u"The SQL statement is not correct:\n'SELECT not_existing_column_name FROM Geome [truncated]... != u"The SQL is not correct:\n'SELECT not_existing_column_name FROM GeometryAttrsCa [truncated]...
- The SQL statement is not correct:
? ----------
+ The SQL is not correct:
'SELECT not_existing_column_name FROM GeometryAttrsCase_map WHERE cat=1;',
values: None,
SQL error: no such column: not_existing_column_name
----------------------------------------------------------------------
Ran 2 tests in 0.114s
FAILED (failures=1)