Author: Alex Gaynor <[email protected]>
Branch: numpy-dtype-refactor
Changeset: r49503:926f651facb4
Date: 2011-11-17 17:05 -0500
http://bitbucket.org/pypy/pypy/changeset/926f651facb4/

Log:    fix the bool tests

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -169,6 +169,10 @@
         else:
             return self.False
 
+    def coerce_subtype(self, space, w_subtype, w_item):
+        # Doesn't return subclasses so it can return the constants.
+        return self._coerce(space, w_item)
+
     def _coerce(self, space, w_item):
         return self.box(space.is_true(w_item))
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to