Kaydet (Commit) 66e2663e authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Note that the stderr output of the test is intentional.

üst afb416b0
import parser import parser
import unittest import unittest
import sys
from test import test_support from test import test_support
# #
...@@ -494,6 +495,7 @@ class ParserStackLimitTestCase(unittest.TestCase): ...@@ -494,6 +495,7 @@ class ParserStackLimitTestCase(unittest.TestCase):
def test_trigger_memory_error(self): def test_trigger_memory_error(self):
e = self._nested_expression(100) e = self._nested_expression(100)
print >>sys.stderr, "Expecting 's_push: parser stack overflow' in next line"
self.assertRaises(MemoryError, parser.expr, e) self.assertRaises(MemoryError, parser.expr, e)
def test_main(): def test_main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment