Skip to content

Commit b3770ae

Browse files
committed
change the test order
1 parent 20c2450 commit b3770ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/test/test_shelve.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def deserializer(data):
283283
bytearray_data = bytearray(b"\x00\x01\x02\x03\x04")
284284
array_data = array.array("i", [1, 2, 3, 4, 5])
285285

286-
s["foo"] = "bar"
286+
s["foo"] = bar
287287
s["bytes_data"] = bytes_data
288288
s["bytearray_data"] = bytearray_data
289289
s["array_data"] = array_data
@@ -393,8 +393,8 @@ def deserializer(data):
393393
serializer=serializer,
394394
deserializer=deserializer) as s:
395395
s["foo"] = "bar"
396-
self.assertNotEqual(s["foo"], "bar")
397396
self.assertIsNone(s["foo"])
397+
self.assertNotEqual(s["foo"], "bar")
398398

399399
def serializer(obj, protocol=None):
400400
pass
@@ -406,8 +406,9 @@ def deserializer(data):
406406
serializer=serializer,
407407
deserializer=deserializer) as s:
408408
s["foo"] = "bar"
409-
self.assertNotEqual(s["foo"], "bar")
410409
self.assertEqual(s["foo"], "")
410+
self.assertNotEqual(s["foo"], "bar")
411+
411412

412413
def test_missing_custom_deserializer(self):
413414
def serializer(obj, protocol=None):

0 commit comments

Comments
 (0)