comparison DEPENDENCIES/mingw32/Python27/Lib/site-packages/numpy/linalg/tests/test_deprecations.py @ 87:2a2c65a20a8b

Add Python libs and headers
author Chris Cannam
date Wed, 25 Feb 2015 14:05:22 +0000
parents
children
comparison
equal deleted inserted replaced
86:413a9d26189e 87:2a2c65a20a8b
1 """Test deprecation and future warnings.
2
3 """
4 import numpy as np
5 from numpy.testing import assert_warns, run_module_suite
6
7
8 def test_qr_mode_full_future_warning():
9 """Check mode='full' FutureWarning.
10
11 In numpy 1.8 the mode options 'full' and 'economic' in linalg.qr were
12 deprecated. The release date will probably be sometime in the summer
13 of 2013.
14
15 """
16 a = np.eye(2)
17 assert_warns(DeprecationWarning, np.linalg.qr, a, mode='full')
18 assert_warns(DeprecationWarning, np.linalg.qr, a, mode='f')
19 assert_warns(DeprecationWarning, np.linalg.qr, a, mode='economic')
20 assert_warns(DeprecationWarning, np.linalg.qr, a, mode='e')
21
22
23 if __name__ == "__main__":
24 run_module_suite()