Author: Benjamin Peterson <[email protected]>
Branch:
Changeset: r44392:79b3d63a265a
Date: 2011-05-23 18:03 -0500
http://bitbucket.org/pypy/pypy/changeset/79b3d63a265a/
Log: add another test
diff --git a/pypy/module/__pypy__/test/test_special.py
b/pypy/module/__pypy__/test/test_special.py
--- a/pypy/module/__pypy__/test/test_special.py
+++ b/pypy/module/__pypy__/test/test_special.py
@@ -43,7 +43,9 @@
def foo(self): return 42
x = X()
x.foo = 23
+ x.bar = 80
assert lookup_special(x, "foo")() == 42
+ assert lookup_special(x, "bar") is None
class X:
pass
raises(TypeError, lookup_special, X(), "foo")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit