|
@@ -2,7 +2,6 @@
|
|
|
Tests of start_command function family (location independent)
|
|
|
"""
|
|
|
|
|
|
-import sys
|
|
|
from grass.gunittest.case import TestCase
|
|
|
from grass.gunittest.main import test
|
|
|
|
|
@@ -98,10 +97,7 @@ class TestPythonModuleWithStdinStdout(TestCase):
|
|
|
)
|
|
|
res = read_command("r.category", map=self.raster, separator=":").strip()
|
|
|
self.assertEquals(res, "1:kůň\n2:kráva\n3:ovečka\n4:býk")
|
|
|
- if sys.version_info.major >= 3:
|
|
|
- self.assertIsInstance(res, str)
|
|
|
- else:
|
|
|
- self.assertIsInstance(res, unicode)
|
|
|
+ self.assertIsInstance(res, str)
|
|
|
|
|
|
def test_write_labels_bytes(self):
|
|
|
"""This tests if Python module works"""
|