test_doctests

./lib/python/pygrass – test_doctests

Test failed

Testtest_doctests
Testsuite./lib/python/pygrass
Test file./lib/python/pygrass/testsuite/test_doctests.py
StatusFAILED
Return code1
Number of tests11
Successful tests4
Failed tests7
Percent successful36%
Test duration0:00:01.144586

Supplementary files

Standard error output (stderr)

... (lines omitted)


======================================================================
FAIL: pixel2coor (grass.pygrass.utils)
Doctest: grass.pygrass.utils.pixel2coor
----------------------------------------------------------------------
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.utils.pixel2coor
  File "etc/python/grass/pygrass/utils.py", line 179, in pixel2coor

----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 182, in grass.pygrass.utils.pixel2coor
Failed example:
    reg = Region()
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.utils.pixel2coor[0]>", line 1, in <module>
        reg = Region()
    NameError: name 'Region' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 183, in grass.pygrass.utils.pixel2coor
Failed example:
    pixel2coor((0, 0), reg) == (reg.north, reg.west)
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.utils.pixel2coor[1]>", line 1, in <module>
        pixel2coor((0, 0), reg) == (reg.north, reg.west)
    NameError: name 'reg' is not defined
----------------------------------------------------------------------
File "etc/python/grass/pygrass/utils.py", line 185, in grass.pygrass.utils.pixel2coor
Failed example:
    pixel2coor((reg.cols, reg.rows), reg) == (reg.south, reg.east)
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.utils.pixel2coor[2]>", line 1, in <module>
        pixel2coor((reg.cols, reg.rows), reg) == (reg.south, reg.east)
    NameError: name 'reg' is not defined


----------------------------------------------------------------------
Ran 11 tests in 0.246s
FAILED (failures=7)