Skip to content

Commit e718753

Browse files
Fix tests
1 parent 8d340cc commit e718753

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/suites/test_encoding.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,19 @@ def test_02_02_string_decode_for_encoding_none_behavior(self):
159159
resp = self.con_encoding_none.eval("return box.space.space_str:get('test_02_02')")
160160
self.assertSequenceEqual(resp, [[b'test_02_02']])
161161

162-
def test_02_03_bytes_decode_for_encoding_utf8_behavior(self):
162+
def test_02_03_bytes_encode_for_encoding_utf8_behavior(self):
163163
self.assertNotRaises(
164164
self.con_encoding_none.insert,
165165
'space_str', [ b'test_02_03' ])
166166

167167
@skip_or_run_mp_bin_test
168168
@skip_or_run_varbinary_test
169169
def test_02_04_varbinary_decode_for_encoding_utf8_behavior(self):
170-
self.con_encoding_utf8.execute(r"""
170+
self.con_encoding_none.execute(r"""
171171
INSERT INTO "space_varbin" VALUES (204, x'DEADBEAF0204');
172172
""")
173173

174-
resp = self.con_encoding_utf8.execute(r"""
174+
resp = self.con_encoding_none.execute(r"""
175175
SELECT * FROM "space_varbin" WHERE "varbin" == x'DEADBEAF0204';
176176
""")
177177
self.assertSequenceEqual(resp, [[204, bytes(bytearray.fromhex('DEADBEAF0204'))]])

0 commit comments

Comments
 (0)