PHP 8.2.30
Preview: test_deprecations.py Size: 640 B
/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/linalg/tests/test_deprecations.py

"""Test deprecation and future warnings.

"""
import numpy as np
from numpy.testing import assert_warns


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')

Directory Contents

Dirs: 1 × Files: 4

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
640 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download
75.97 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
5.31 KB lrw-r--r-- 2026-01-20 13:01:48
Edit Download
0 B lrw-r--r-- 2026-01-20 13:01:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).