Example #1
0
 def raiseMemError():
     try:
         raise_memoryerror()
     except MemoryError as e:
         tb = e.__traceback__
     else:
         self.fail("Should have raises a MemoryError")
     return traceback.format_tb(tb)
Example #2
0
 def raiseMemError():
     try:
         raise_memoryerror()
     except MemoryError as e:
         tb = e.__traceback__
     else:
         self.fail("Should have raises a MemoryError")
     return traceback.format_tb(tb)
Example #3
0
 def inner():
     nonlocal wr
     c = C()
     wr = weakref.ref(c)
     raise_memoryerror()
Example #4
0
 def inner():
     nonlocal wr
     c = C()
     wr = weakref.ref(c)
     raise_memoryerror()