We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1610f commit b6b895cCopy full SHA for b6b895c
1 file changed
tests/unit/test_help.py
@@ -1,8 +1,8 @@
1
-import io
2
import sys
3
4
from ..testcase import TestCase
5
+
6
class TestHelp(TestCase):
7
8
def test_get_function_list(self):
@@ -26,7 +26,14 @@ def test_invalid_function_help(self):
26
self.assertEqual(h, "Function 'fake' does not exist.")
27
28
def test_print(self):
29
- h = io.StringIO()
30
+ try:
31
+ import StringIO # python 2
32
+ h = StringIO.StringIO()
33
+ except ImportError:
34
+ import io # python 3
35
+ h = io.StringIO()
36
37
sys.stdout = h
38
39
o = self.geosupport.help()
0 commit comments