Searched refs:opcode_in_pickle (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | pickletester.py | 80 def opcode_in_pickle(code, pickle): function 1181 self.assertEqual(opcode_in_pickle(pickle.LONG1, s), proto >= 2) 1189 self.assertEqual(opcode_in_pickle(pickle.LONG4, s), proto >= 2) 1222 self.assertEqual(opcode_in_pickle(expected, s), True) 1244 self.assertEqual(opcode_in_pickle(expected, s), True) 1314 self.assertEqual(opcode_in_pickle(opcode, s1), False) 1324 self.assertEqual(opcode_in_pickle(opcode, s2), True) 1400 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s), proto >= 2) 1416 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s), proto >= 2) 1548 self.assertTrue(opcode_in_pickle(opcode, pickled))
|
/external/python/cpython3/Lib/test/ |
D | pickletester.py | 36 def opcode_in_pickle(code, pickle): function 1630 self.assertEqual(opcode_in_pickle(pickle.LONG1, s), proto >= 2) 1638 self.assertEqual(opcode_in_pickle(pickle.LONG4, s), proto >= 2) 1677 self.assertTrue(opcode_in_pickle(expected, s)) 1702 self.assertTrue(opcode_in_pickle(expected, s)) 1782 self.assertFalse(opcode_in_pickle(opcode, s1)) 1791 self.assertEqual(opcode_in_pickle(opcode, s2), True, repr(s2)) 1892 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s), 1894 self.assertFalse(opcode_in_pickle(pickle.NEWOBJ_EX, s)) 1912 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s), [all …]
|