diff --git a/glymur/test/test_printing.py b/glymur/test/test_printing.py
index ef2b7f2..9d3374e 100644
--- a/glymur/test/test_printing.py
+++ b/glymur/test/test_printing.py
@@ -747,8 +747,12 @@ class TestPrinting(unittest.TestCase):
with patch('sys.stdout', new=StringIO()) as fake_out:
print(xmlbox)
actual = fake_out.getvalue().strip()
- lines = ["XML Box (xml ) @ (-1, 0)",
- " Strömung"]
+ if sys.hexversion < 0x03000000:
+ lines = ["XML Box (xml ) @ (-1, 0)",
+ " Str\xc3\xb6mung"]
+ else:
+ lines = ["XML Box (xml ) @ (-1, 0)",
+ " Strömung"]
expected = '\n'.join(lines)
self.assertEqual(actual, expected)
@@ -767,8 +771,13 @@ class TestPrinting(unittest.TestCase):
with patch('sys.stdout', new=StringIO()) as fake_out:
print(xmlbox)
actual = fake_out.getvalue().strip()
- lines = ["XML Box (xml ) @ (-1, 0)",
- " Россия"]
+ if sys.hexversion < 0x03000000:
+ lines = ["XML Box (xml ) @ (-1, 0)",
+ " \xd0\xa0\xd0\xbe\xd1\x81\xd1\x81\xd0\xb8\xd1\x8f"]
+ else:
+ lines = ["XML Box (xml ) @ (-1, 0)",
+ " Россия"]
+
expected = '\n'.join(lines)
self.assertEqual(actual, expected)