summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-01-23 15:58:39 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-01-23 15:58:39 -0700
commit173cb747e86dc94b39f4ccb19e79d2fa20dbdcf8 (patch)
tree632e3a26cc867b5e99458d9be7b01c8abd538c2a
parent8435696e7ee3bc03cb85decc9323cd2d0487a5f8 (diff)
downloadnumpy-173cb747e86dc94b39f4ccb19e79d2fa20dbdcf8.tar.gz
ENH: Ticket 1695, add test for find_common_type with booleans.
-rw-r--r--numpy/core/tests/test_regression.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 06055b2cd..c10656e7f 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -1441,5 +1441,9 @@ class TestRegression(TestCase):
a = a.byteswap().newbyteorder()
assert_equal(a.nonzero()[0], [1]) # [0] if nonzero() ignores swap
+ def test_find_common_type_boolean(self):
+ # Ticket #1695
+ assert_(np.find_common_type([],['?','?']) == '?')
+
if __name__ == "__main__":
run_module_suite()