test_doctests

./lib/python/pygrass/gis – test_doctests

Test failed

Test filetest_doctests
Testsuite./lib/python/pygrass/gis
StatusFAILED
Return code1
Number of tests17
Successful tests7
Failed tests10
Percent successful41%
Test duration0:00:01.095841

Supplementary files

Standard error output (stderr)

... (lines omitted)
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 311, in grass.pygrass.gis.region.Region.vect
Failed example:
    reg.vect('census')
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.gis.region.Region.vect[1]>", line 1, in <module>
        reg.vect('census')
      File "etc/python/grass/pygrass/gis/region.py", line 319, in vect
        with VectorTopo(vector_name, mode='r') as vect:
      File "etc/python/grass/pygrass/vector/abstract.py", line 95, in __enter__
        self.open(*self._aopen, **self._kwopen)
      File "etc/python/grass/pygrass/vector/abstract.py", line 338, in open
        raise OpenError("Map <%s> not found." % self._name)
    OpenError: Map <census> not found.
----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line 312, in grass.pygrass.gis.region.Region.vect
Failed example:
    reg.get_bbox()
Expected:
    Bbox(230963.640878, 212125.562878, 645837.437393, 628769.374393)
Got:
    Bbox(5147000.0, 4878000.0, 518000.0, 311000.0)


======================================================================
FAIL: zone (grass.pygrass.gis.region.Region)
Doctest: grass.pygrass.gis.region.Region.zone
----------------------------------------------------------------------
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.gis.region.Region.zone
  File "etc/python/grass/pygrass/gis/region.py", line unknown line number, in zone

----------------------------------------------------------------------
File "etc/python/grass/pygrass/gis/region.py", line ?, in grass.pygrass.gis.region.Region.zone
Failed example:
    reg.zone
Expected:
    0
Got:
    32


----------------------------------------------------------------------
Ran 17 tests in 0.081s
FAILED (failures=10)