test_doctests

./lib/python/pygrass/vector – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass/vector
Test file./lib/python/pygrass/vector/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests99
Successful tests80
Failed tests19
Percent successful81%
Test duration0:00:02.170478

Supplementary files

Standard error output (stderr)

... (lines omitted)
Failed example:
    tab_sqlite.n_rows()
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.table.Table.n_rows[3]>", line 1, in <module>
        tab_sqlite.n_rows()
    NameError: name 'tab_sqlite' is not defined


======================================================================
FAIL: get_path (grass.pygrass.vector.table)
Doctest: grass.pygrass.vector.table.get_path
----------------------------------------------------------------------
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.get_path
  File "etc/python/grass/pygrass/vector/table.py", line 44, in get_path

----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 52, in grass.pygrass.vector.table.get_path
Failed example:
    new_path = get_path(path)
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.table.get_path[1]>", line 1, in <module>
        new_path = get_path(path)
      File "etc/python/grass/pygrass/vector/table.py", line 77, in get_path
        path = path.replace('$MAP', vect_name)
    TypeError: coercing to Unicode: need string or buffer, NoneType found
----------------------------------------------------------------------
File "etc/python/grass/pygrass/vector/table.py", line 57, in grass.pygrass.vector.table.get_path
Failed example:
    new_path.replace("//","/") == new_path2.replace("//","/")
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.table.get_path[5]>", line 1, in <module>
        new_path.replace("//","/") == new_path2.replace("//","/")
    NameError: name 'new_path' is not defined


----------------------------------------------------------------------
Ran 99 tests in 0.965s
FAILED (failures=19)