[GRASS-SVN] r65949 - grass/trunk/lib/python/pygrass/gis/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 17 22:17:38 PDT 2015
Author: zarch
Date: 2015-08-17 22:17:38 -0700 (Mon, 17 Aug 2015)
New Revision: 65949
Modified:
grass/trunk/lib/python/pygrass/gis/testsuite/test_doctests.py
Log:
pygrass: Fix gis doctest file
Modified: grass/trunk/lib/python/pygrass/gis/testsuite/test_doctests.py
===================================================================
--- grass/trunk/lib/python/pygrass/gis/testsuite/test_doctests.py 2015-08-18 02:43:07 UTC (rev 65948)
+++ grass/trunk/lib/python/pygrass/gis/testsuite/test_doctests.py 2015-08-18 05:17:38 UTC (rev 65949)
@@ -9,7 +9,8 @@
import grass.gunittest.main
import grass.gunittest.utils
-import grass.pygrass.gis as pgrass
+from grass.pygrass import gis
+from grass.pygrass.gis import region
# doctest does not allow changing the base classes of test case, skip test case
@@ -31,8 +32,8 @@
# for now it is the only place where it works
grass.gunittest.utils.do_doctest_gettext_workaround()
# this should be called at some top level
- tests.addTests(doctest.DocTestSuite(pgrass))
- tests.addTests(doctest.DocTestSuite(pgrass.region))
+ tests.addTests(doctest.DocTestSuite(gis))
+ tests.addTests(doctest.DocTestSuite(region))
return tests
More information about the grass-commit
mailing list