Author: Matti Picus <[email protected]>
Branch: 
Changeset: r88461:e17b6c7aa0ba
Date: 2016-11-18 14:06 +0200
http://bitbucket.org/pypy/pypy/changeset/e17b6c7aa0ba/

Log:    remove bogus test, __buffer__ is not a valid python attribute for an
        app-level class

diff --git a/pypy/module/cpyext/test/test_getargs.py 
b/pypy/module/cpyext/test/test_getargs.py
--- a/pypy/module/cpyext/test/test_getargs.py
+++ b/pypy/module/cpyext/test/test_getargs.py
@@ -139,13 +139,6 @@
             return result;
             ''')
         assert 'foo\0bar\0baz' == pybuffer(buffer('foo\0bar\0baz'))
-        import sys
-        if '__pypy__' not in sys.builtin_module_names:
-            class A(object):
-                def __buffer__(self, flags):
-                    return buffer('123')
-            assert pybuffer(A()) == '123'
-
 
     def test_pyarg_parse_string_fails(self):
         """
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to