[pypy-svn] r12338 - pypy/dist/pypy/objspace/test
arigo at codespeak.net
arigo at codespeak.net
Mon May 16 01:09:53 CEST 2005
Author: arigo
Date: Mon May 16 01:09:53 2005
New Revision: 12338
Modified:
pypy/dist/pypy/objspace/test/test_descroperation.py
Log:
Completed tests, in search for a strange failure in test_descr.py...
Modified: pypy/dist/pypy/objspace/test/test_descroperation.py
==============================================================================
--- pypy/dist/pypy/objspace/test/test_descroperation.py (original)
+++ pypy/dist/pypy/objspace/test/test_descroperation.py Mon May 16 01:09:53 2005
@@ -39,8 +39,12 @@
a1 *= 4
assert a1 == "imul"
assert a - 2 == "sub"
+ assert a - object() == "sub"
+ assert 2 - a == "rsub"
assert object() - a == "rsub"
assert a ** 2 == "pow"
+ assert a ** object() == "pow"
+ assert 2 ** a == "rpow"
assert object() ** a == "rpow"
assert -a == "neg"
More information about the Pypy-commit
mailing list