[pypy-commit] pypy numpy-dtype-refactor: fix the bool tests
alex_gaynor
noreply at buildbot.pypy.org
Thu Nov 17 23:06:12 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
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))
More information about the pypy-commit
mailing list