test_table

./lib/python/pygrass/vector – test_table

Test failed

Test filetest_table
Testsuite./lib/python/pygrass/vector
StatusFAILED
Return code1
Number of tests4
Successful tests0
Failed tests5
Percent successful0%
Test duration0:00:03.336256

Supplementary files

Standard error output (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
etc/python/grass/lib/gis.py:803: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
EEEEE
======================================================================
ERROR: test_check_insert_update_str (__main__.ColumnsTestCase)
Check insert_str and update_str attribute of Columns are correct
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/vector/testsuite/test_table.py", line 144, in tearDown
    self.table.drop(force=True)
  File "etc/python/grass/pygrass/vector/table.py", line 1025, in drop
    if len(used) > 0 and not force:
TypeError: object of type 'NoneType' has no len()

======================================================================
ERROR: test_insert (__main__.TableInsertTestCase)
Test Table.insert method
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/vector/testsuite/test_table.py", line 168, in tearDown
    self.table.drop(force=True)
  File "etc/python/grass/pygrass/vector/table.py", line 1025, in drop
    if len(used) > 0 and not force:
TypeError: object of type 'NoneType' has no len()

======================================================================
ERROR: test_insert_many (__main__.TableInsertTestCase)
Test Table.insert method using many==True
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/vector/testsuite/test_table.py", line 168, in tearDown
    self.table.drop(force=True)
  File "etc/python/grass/pygrass/vector/table.py", line 1025, in drop
    if len(used) > 0 and not force:
TypeError: object of type 'NoneType' has no len()

======================================================================
ERROR: test_update (__main__.TableUpdateTestCase)
Test Table.update method
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/vector/testsuite/test_table.py", line 201, in test_update
    self.table.update(cat, list(vals), cursor=cur)
  File "etc/python/grass/pygrass/vector/table.py", line 1128, in update
    return cur.execute(self.columns.update_str, values)
ProgrammingError: Incorrect number of bindings supplied. The current statement uses 4, and there are 3 supplied.

======================================================================
ERROR: test_update (__main__.TableUpdateTestCase)
Test Table.update method
----------------------------------------------------------------------
Traceback (most recent call last):
  File "lib/python/pygrass/vector/testsuite/test_table.py", line 144, in tearDown
    self.table.drop(force=True)
  File "etc/python/grass/pygrass/vector/table.py", line 1025, in drop
    if len(used) > 0 and not force:
TypeError: object of type 'NoneType' has no len()

----------------------------------------------------------------------
Ran 4 tests in 2.263s
FAILED (errors=5)