[pypy-svn] r5048 - pypy/trunk/src/pypy/objspace/std/test
arigo at codespeak.net
arigo at codespeak.net
Fri Jun 11 13:08:03 CEST 2004
Author: arigo
Date: Fri Jun 11 13:08:02 2004
New Revision: 5048
Modified:
pypy/trunk/src/pypy/objspace/std/test/test_instmethobject.py
Log:
Fixed broken test.
Modified: pypy/trunk/src/pypy/objspace/std/test/test_instmethobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/test/test_instmethobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/test/test_instmethobject.py Fri Jun 11 13:08:02 2004
@@ -21,13 +21,13 @@
def test_getBound(self):
def f(l,x): return l[x+1]
- bound = _pypy_get(f, 'abcdef') # XXX replace with f.__get__()
+ bound = f.__get__('abcdef')
self.assertEquals(bound(1), 'c')
self.assertRaises(TypeError, bound)
self.assertRaises(TypeError, bound, 2, 3)
def test_getUnbound(self):
def f(l,x): return l[x+1]
- unbound = _pypy_get(f, None, str) # XXX replace with f.__get__()
+ unbound = f.__get__(None, str)
self.assertEquals(unbound('abcdef', 2), 'd')
self.assertRaises(TypeError, unbound)
self.assertRaises(TypeError, unbound, 4)
More information about the Pypy-commit
mailing list