[pypy-commit] pypy cpyext-avoid-roundtrip: merge heads"
antocuni
pypy.commits at gmail.com
Thu Oct 12 06:26:18 EDT 2017
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: cpyext-avoid-roundtrip
Changeset: r92732:226ccce93e52
Date: 2017-10-12 10:30 +0200
http://bitbucket.org/pypy/pypy/changeset/226ccce93e52/
Log: merge heads"
diff --git a/pypy/module/cpyext/test/test_api.py b/pypy/module/cpyext/test/test_api.py
--- a/pypy/module/cpyext/test/test_api.py
+++ b/pypy/module/cpyext/test/test_api.py
@@ -25,6 +25,10 @@
cls.preload_builtins(space)
class CAPI:
+ def __repr__(self):
+ return '<%s.%s instance>' % (self.__class__.__module__,
+ self.__class__.__name__)
+
def __getattr__(self, name):
return getattr(cls.space, name)
cls.api = CAPI()
More information about the pypy-commit
mailing list