[pypy-dev] [issue21] test_descrtut.py fails under TrivialObjSpace
Rocco Moretti
pypy-issues at codespeak.net
Sat Apr 19 02:26:09 MEST 2003
New submission from Rocco Moretti <roccomoretti at netscape.net>:
Under revision 367, test_descrtut.py from the CPython fails
under the TrivialObjSpace with the following results (with
-v flag, edited):
test_descrtut
<...>
Running string test.test_descrtut.__test__.tut1
<...>
Expecting: [1, 2, '__builtins__', 'x']
ok
Expecting: 3
ok
Expecting:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "<string>", line 1, in ?
NameError: name 'foo' is not defined
*****************************************************************
Failure in example: exec "print foo" in a
from line #49 of test.test_descrtut.__test__.tut1
Got: 0.0
Expecting: nothing
ok
<...>
1 of 30 examples failed in string
test.test_descrtut.__test__.tut1
Running string test.test_descrtut.__test__.tut2
Expecting: nothing
ok
Expecting: 0.0
ok
Expecting: nothing
ok
Expecting: -1
ok
Expecting:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'defaultdict2' object has no attribute 'x1'
Traceback (most recent call last):
File "C:\pypy\PyPyTest.py", line 213, in run_console_file
con.ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
613, in CALL_FUNCTION
call_function_extra(f, oparg, False, False)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
609, in call_function_extra
w_result = f.space.call(w_function, w_arguments, w_keywords)
File "C:\PYTHON22\lib\pypy\objspace\trivial.py", line 203,
in call
return ec.eval_frame(frame)
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
51, in eval
opcode.dispatch_noarg(self, op)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
698, in dispatch_noarg
fn(f)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
294, in EXEC_STMT
ec.eval_frame(newframe) #discard return value
File
"C:\PYTHON22\lib\pypy\interpreter\executioncontext.py", line
13, in eval_frame
result = frame.eval(self)
File "C:\PYTHON22\lib\pypy\interpreter\pyframe.py", line
49, in eval
opcode.dispatch_arg(self, op, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
707, in dispatch_arg
fn(f, oparg)
File "C:\PYTHON22\lib\pypy\interpreter\opcode.py", line
354, in STORE_ATTR
f.space.setattr(w_obj, w_attributename, w_newvalue)
AttributeError: 'defaultdict2' object has no attribute 'x1'
----------
messages: 40
nosy: rocco
priority: bug
status: unread
title: test_descrtut.py fails under TrivialObjSpace
__________________________________________________
PyPython issue tracker <pypy-issues at codespeak.net>
http://codespeak.net/issues/pypy/issue21
__________________________________________________
More information about the pypy-dev
mailing list