(original) (raw)
changeset: 77812:b66e82c9f852 parent: 77810:a3aba2148186 parent: 77811:5881a58c5425 user: Antoine Pitrou solipsis@pitrou.net date: Tue Jun 26 23:05:27 2012 +0200 files: Lib/test/pickletester.py Misc/ACKS description: Issue #15079: make a test applicable to both C and Python versions of the pickle module. Patch by Stefan Mihaila. diff -r a3aba2148186 -r b66e82c9f852 Lib/test/pickletester.py --- a/Lib/test/pickletester.py Tue Jun 26 14:08:15 2012 -0400 +++ b/Lib/test/pickletester.py Tue Jun 26 23:05:27 2012 +0200 @@ -708,6 +708,11 @@ def test_getinitargs(self): pass + def test_pop_empty_stack(self): + # Test issue7455 + s = b'0' + self.assertRaises((pickle.UnpicklingError, IndexError), self.loads, s) + def test_metaclass(self): a = use_metaclass() for proto in protocols: @@ -1424,9 +1429,6 @@ # Test issue4298 s = bytes([0x58, 0, 0, 0, 0x54]) self.assertRaises(EOFError, pickle.loads, s) - # Test issue7455 - s = b'0' - self.assertRaises(pickle.UnpicklingError, pickle.loads, s) class AbstractPersistentPicklerTests(unittest.TestCase): diff -r a3aba2148186 -r b66e82c9f852 Misc/ACKS --- a/Misc/ACKS Tue Jun 26 14:08:15 2012 -0400 +++ b/Misc/ACKS Tue Jun 26 23:05:27 2012 +0200 @@ -695,6 +695,7 @@ Steven Miale Trent Mick Stan Mihai +Stefan Mihaila Aristotelis Mikropoulos Chad Miller Damien Miller /solipsis@pitrou.net