OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
numpy
/
linalg
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📁
__pycache__
-
10/28/2024 08:45:53 AM
rwxr-xr-x
📄
test_build.py
1.73 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
test_deprecations.py
776 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
test_linalg.py
58.54 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
test_regression.py
5.29 KB
09/29/2017 05:31:46 PM
rw-r--r--
Editing: test_deprecations.py
Close
"""Test deprecation and future warnings. """ from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import assert_warns, run_module_suite def test_qr_mode_full_future_warning(): """Check mode='full' FutureWarning. In numpy 1.8 the mode options 'full' and 'economic' in linalg.qr were deprecated. The release date will probably be sometime in the summer of 2013. """ a = np.eye(2) assert_warns(DeprecationWarning, np.linalg.qr, a, mode='full') assert_warns(DeprecationWarning, np.linalg.qr, a, mode='f') assert_warns(DeprecationWarning, np.linalg.qr, a, mode='economic') assert_warns(DeprecationWarning, np.linalg.qr, a, mode='e') if __name__ == "__main__": run_module_suite()