mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Note that the stderr output of the test is intentional.
This commit is contained in:
parent
afb416b002
commit
66e2663eba
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
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):
|
||||||
|
|
||||||
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():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue