Chris@87: """Test deprecation and future warnings. Chris@87: Chris@87: """ Chris@87: import numpy as np Chris@87: from numpy.testing import assert_warns, run_module_suite Chris@87: Chris@87: Chris@87: def test_qr_mode_full_future_warning(): Chris@87: """Check mode='full' FutureWarning. Chris@87: Chris@87: In numpy 1.8 the mode options 'full' and 'economic' in linalg.qr were Chris@87: deprecated. The release date will probably be sometime in the summer Chris@87: of 2013. Chris@87: Chris@87: """ Chris@87: a = np.eye(2) Chris@87: assert_warns(DeprecationWarning, np.linalg.qr, a, mode='full') Chris@87: assert_warns(DeprecationWarning, np.linalg.qr, a, mode='f') Chris@87: assert_warns(DeprecationWarning, np.linalg.qr, a, mode='economic') Chris@87: assert_warns(DeprecationWarning, np.linalg.qr, a, mode='e') Chris@87: Chris@87: Chris@87: if __name__ == "__main__": Chris@87: run_module_suite()