[pypy-svn] r58394 - in pypy/branch/2.5-merge/pypy/interpreter: astcompiler/test test
fijal at codespeak.net
fijal at codespeak.net
Tue Sep 23 19:02:12 CEST 2008
Author: fijal
Date: Tue Sep 23 19:02:11 2008
New Revision: 58394
Modified:
pypy/branch/2.5-merge/pypy/interpreter/astcompiler/test/test_compiler.py
pypy/branch/2.5-merge/pypy/interpreter/test/test_interpreter.py
Log:
Move the test to a correct place
Modified: pypy/branch/2.5-merge/pypy/interpreter/astcompiler/test/test_compiler.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/interpreter/astcompiler/test/test_compiler.py (original)
+++ pypy/branch/2.5-merge/pypy/interpreter/astcompiler/test/test_compiler.py Tue Sep 23 19:02:11 2008
@@ -606,3 +606,17 @@
""")
decl = str(decl) + '\n'
yield self.simple_test, decl + 'r = test_read(X())', 'r', 42
+
+ def test_stack_depth_bug(self):
+ decl = py.code.Source("""
+ class A:
+ def initialize(self):
+ # install all the MultiMethods into the space instance
+ if isinstance(mm, object):
+ def make_boundmethod(func=func):
+ def boundmethod(*args):
+ return func(self, *args)
+ """)
+ decl = str(decl) + '\n'
+ yield self.simple_test, decl, 'r', None
+
Modified: pypy/branch/2.5-merge/pypy/interpreter/test/test_interpreter.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/interpreter/test/test_interpreter.py (original)
+++ pypy/branch/2.5-merge/pypy/interpreter/test/test_interpreter.py Tue Sep 23 19:02:11 2008
@@ -279,15 +279,3 @@
def test_identity(self):
def f(x): return x
assert f(666) == 666
-
- def test_stack_bug(self):
- x = """class A:
- def initialize(self):
- # install all the MultiMethods into the space instance
- if isinstance(mm, object):
- def make_boundmethod(func=func):
- def boundmethod(*args):
- return func(self, *args)
- """
- exec x in {}
- # assert did not crash
More information about the Pypy-commit
mailing list