Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
test_deprecations.py22 linesDownload Raw Back to tests
1"""Test deprecation and future warnings.
2
3"""
4import pytest
5
6import numpy as np
7
8
9def test_qr_mode_full_future_warning():
10    """Check mode='full' FutureWarning.
11
12    In numpy 1.8 the mode options 'full' and 'economic' in linalg.qr were
13    deprecated. The release date will probably be sometime in the summer
14    of 2013.
15
16    """
17    a = np.eye(2)
18    pytest.warns(DeprecationWarning, np.linalg.qr, a, mode='full')
19    pytest.warns(DeprecationWarning, np.linalg.qr, a, mode='f')
20    pytest.warns(DeprecationWarning, np.linalg.qr, a, mode='economic')
21    pytest.warns(DeprecationWarning, np.linalg.qr, a, mode='e')
22 
codekingpro/portable-devtools · Team Ai