Skip to content

Commit 8764502

Browse files
committed
use repr() for string representation of tuples
1 parent f94c27e commit 8764502

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tarantool/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def __str__(self):
229229
}, sort_keys = True, indent = 4)
230230
output = []
231231
for tpl in self._data:
232-
output.extend(("- ", json.dumps(tpl), "\n"))
232+
output.extend(("- ", repr(tpl), "\n"))
233233
if len(output) > 0:
234234
output.pop()
235235
return ''.join(output)

tests/suites/test_dml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_00_02_fill_space(self):
6060
[i, i%5, 'tuple_'+str(i)]
6161
)
6262
def test_00_03_answer_repr(self):
63-
repr_str = """- [1, 1, "tuple_1"]"""
63+
repr_str = """- [1, 1, 'tuple_1']"""
6464
self.assertEqual(repr(self.con.select('space_1', 1)), repr_str)
6565

6666
def test_02_select(self):

0 commit comments

Comments
 (0)