Skip to content

Commit

Permalink
libpython/script: fix tests (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Feb 19, 2021
1 parent 4947132 commit 7da47c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion python/grass/script/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
>>> # We create a temporary region that is only valid in this python session
... gs.use_temp_region()
>>> gs.run_command("g.region", n=80, e=120, t=60, s=0, w=0, b=0, res=20, res3=20)
0
>>>
>>> # Lets create a raster map numpy array
... # based at the current region settings
Expand Down
3 changes: 1 addition & 2 deletions python/grass/script/testsuite/test_names.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import os
import sys
import platform

from grass.gunittest.case import TestCase
Expand All @@ -20,7 +19,7 @@ def test_append_node_pid(self):
self.assertIn(base_name, full_name)
self.assertGreater(len(full_name), len(base_name))
self.assertIn(str(os.getpid()), full_name)
self.assertIn(platform.node(), full_name)
self.assertIn(utils.legalize_vector_name(platform.node()), full_name)
self.assertTrue(legal_name(full_name))
# TODO: It should be also a valid vector name
# but we don't have a function for that (same for all)
Expand Down

0 comments on commit 7da47c1

Please sign in to comment.