浏览代码

tests: pass string with commas instead of a list for the pattern option of g.remove (PyGRASS does not allow list when not specified in module interface)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62163 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 10 年之前
父节点
当前提交
f17426b779
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      raster3d/r3.flow/testsuite/r3flow_test.py

+ 2 - 2
raster3d/r3.flow/testsuite/r3flow_test.py

@@ -54,8 +54,8 @@ class FlowlineTest(TestCase):
     def tearDownClass(cls):
         """!Remove the temporary region"""
         cls.del_temp_region()
-        cls.runModule('g.remove', flags='f', type='rast3d', pattern=['map_1', 'map_2', 'map_3', 'map_4', 'map_5', 'test_flowaccum'])
-        cls.runModule('g.remove', flags='f', type='vect', pattern=['test_flowline', 'test_seeds'])
+        cls.runModule('g.remove', flags='f', type='rast3d', pattern=','.join(['map_1', 'map_2', 'map_3', 'map_4', 'map_5', 'test_flowaccum']))
+        cls.runModule('g.remove', flags='f', type='vect', pattern=','.join(['test_flowline', 'test_seeds']))
         os.remove('./data/flowline_tmp.ascii')
 
     def test_interpolation(self):