[Numpy-svn] r8383 - trunk/numpy/lib/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue May 4 22:50:03 EDT 2010
Author: charris
Date: 2010-05-04 21:50:03 -0500 (Tue, 04 May 2010)
New Revision: 8383
Modified:
trunk/numpy/lib/tests/test_regression.py
Log:
ENH: Add test of polyder return type.
Modified: trunk/numpy/lib/tests/test_regression.py
===================================================================
--- trunk/numpy/lib/tests/test_regression.py 2010-05-05 02:50:00 UTC (rev 8382)
+++ trunk/numpy/lib/tests/test_regression.py 2010-05-05 02:50:03 UTC (rev 8383)
@@ -181,5 +181,13 @@
assert isinstance(path, (str, unicode))
assert path != ''
+ def test_polyder_return_type(self):
+ """Ticket #1249"""
+ assert_(isinstance(np.polyder(np.poly1d([1]), 0), np.poly1d))
+ assert_(isinstance(np.polyder([1], 0), np.ndarray))
+ assert_(isinstance(np.polyder(np.poly1d([1]), 1), np.poly1d))
+ assert_(isinstance(np.polyder([1], 1), np.ndarray))
+
+
if __name__ == "__main__":
run_module_suite()
More information about the Numpy-svn
mailing list