diff options
Diffstat (limited to 'cliff/tests/test_formatters_value.py')
-rw-r--r-- | cliff/tests/test_formatters_value.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cliff/tests/test_formatters_value.py b/cliff/tests/test_formatters_value.py index 6053dd3..a0f2362 100644 --- a/cliff/tests/test_formatters_value.py +++ b/cliff/tests/test_formatters_value.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -import six +from io import StringIO from cliff.formatters import value from cliff.tests import base @@ -26,7 +26,7 @@ class TestValueFormatter(base.TestBase): c = ('a', 'b', 'c', 'd') d = ('A', 'B', 'C', '"no escape me"') expected = 'A\nB\nC\n"no escape me"\n' - output = six.StringIO() + output = StringIO() sf.emit_one(c, d, output, None) actual = output.getvalue() self.assertEqual(expected, actual) @@ -36,7 +36,7 @@ class TestValueFormatter(base.TestBase): c = ('a', 'b', 'c', 'd') d = ('A', 'B', 'C', test_columns.FauxColumn(['the', 'value'])) expected = "A\nB\nC\n['the', 'value']\n" - output = six.StringIO() + output = StringIO() sf.emit_one(c, d, output, None) actual = output.getvalue() self.assertEqual(expected, actual) @@ -48,7 +48,7 @@ class TestValueFormatter(base.TestBase): d2 = ('D', 'E', 'F') data = [d1, d2] expected = 'A B C\nD E F\n' - output = six.StringIO() + output = StringIO() sf.emit_list(c, data, output, None) actual = output.getvalue() self.assertEqual(expected, actual) @@ -59,7 +59,7 @@ class TestValueFormatter(base.TestBase): d1 = ('A', 'B', test_columns.FauxColumn(['the', 'value'])) data = [d1] expected = "A B ['the', 'value']\n" - output = six.StringIO() + output = StringIO() sf.emit_list(c, data, output, None) actual = output.getvalue() self.assertEqual(expected, actual) |