Home
last modified time | relevance | path

Searched refs:check_unpickling_error (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dpickletester.py516 def check_unpickling_error(self, errors, data): member in AbstractUnpickleTests
541 self.check_unpickling_error(self.error, 'garyp')
551 self.check_unpickling_error(ValueError, data)
572 self.check_unpickling_error(ValueError, buf)
693 self.check_unpickling_error(self.error, 'g0\np0\n')
694 self.check_unpickling_error(self.error, 'h\x00q\x00')
760 self.check_unpickling_error(self.bad_stack_errors, p)
791 self.check_unpickling_error(self.bad_mark_errors, p)
794 self.check_unpickling_error(EOFError, '')
795 self.check_unpickling_error(EOFError, 'N')
[all …]
/external/python/cpython3/Lib/test/
Dpickletester.py687 def check_unpickling_error(self, errors, data): member in AbstractUnpickleTests
778 self.check_unpickling_error(ValueError, data)
863 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
870 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
878 self.check_unpickling_error(KeyError, b'g0\np0')
893 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
899 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
929 self.check_unpickling_error(ValueError, dumped)
935 self.check_unpickling_error(ValueError, dumped)
938 self.check_unpickling_error(ValueError, b"S'\\'\n.")
[all …]