Skip to content

Commit

Permalink
pygrass: remove failing test as not useful, fix history __repr__ func…
Browse files Browse the repository at this point in the history
…tion (#1411)
  • Loading branch information
petrasovaa committed Mar 1, 2021
1 parent 0c200d6 commit fd92e67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion python/grass/pygrass/raster/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(

def __repr__(self):
return "History(%s)" % ", ".join(
["%s=%r" % (self.attr, getattr(self, attr)) for attr in self.attrs]
["%s=%r" % (attr, getattr(self, attr)) for attr in self.attrs]
)

def __del__(self):
Expand Down
4 changes: 0 additions & 4 deletions python/grass/pygrass/raster/testsuite/test_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ def testHistory(self):
self.assertEqual(decode(hist.src2), "No such source 2")
r.close()

hist1 = History("no_map")
hist1.command()
self.assertEqual(decode(hist1.line(0)), "test_history.py")


if __name__ == "__main__":
test()

0 comments on commit fd92e67

Please sign in to comment.