mirror of
https://github.com/python/cpython.git
synced 2026-01-08 00:12:42 +00:00
Fix tests for issue #5308.
This commit is contained in:
parent
8d7d6bcc25
commit
ec50cb292f
1 changed files with 4 additions and 4 deletions
|
|
@ -282,13 +282,13 @@ def check_unmarshallable(self, data):
|
|||
self.assertRaises(ValueError, marshal.dump, data, f)
|
||||
|
||||
@test_support.precisionbigmemtest(size=LARGE_SIZE, memuse=1, dry_run=False)
|
||||
def test_bytes(self, size):
|
||||
self.check_unmarshallable(b'x' * size)
|
||||
def test_string(self, size):
|
||||
self.check_unmarshallable('x' * size)
|
||||
|
||||
@test_support.precisionbigmemtest(size=LARGE_SIZE,
|
||||
memuse=character_size, dry_run=False)
|
||||
def test_str(self, size):
|
||||
self.check_unmarshallable('x' * size)
|
||||
def test_unicode(self, size):
|
||||
self.check_unmarshallable(u'x' * size)
|
||||
|
||||
@test_support.precisionbigmemtest(size=LARGE_SIZE,
|
||||
memuse=pointer_size, dry_run=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue