Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpython/script: fix tests #1381

Merged
merged 2 commits into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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