Note that the stderr output of the test is intentional.

This commit is contained in:
Martin v. Löwis 2008-03-18 13:16:05 +00:00
parent afb416b002
commit 66e2663eba
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import parser
import unittest
import sys
from test import test_support
#
@ -494,6 +495,7 @@ class ParserStackLimitTestCase(unittest.TestCase):
def test_trigger_memory_error(self):
e = self._nested_expression(100)
print >>sys.stderr, "Expecting 's_push: parser stack overflow' in next line"
self.assertRaises(MemoryError, parser.expr, e)
def test_main():