File size: 3,171 Bytes
dc2106c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import sys
import warnings
from typing import Any, List, ClassVar, Tuple, Set

if sys.version_info >= (3, 8):
    from typing import Final
else:
    from typing_extensions import Final

from unittest import (
    TestCase as TestCase,
)

from unittest.case import (
    SkipTest as SkipTest,
)

__all__: List[str]

def run_module_suite(file_to_run=..., argv=...): ...

class KnownFailureException(Exception): ...
class IgnoreException(Exception): ...

class clear_and_catch_warnings(warnings.catch_warnings):
    class_modules: ClassVar[Tuple[str, ...]]
    modules: Set[str]
    def __init__(self, record=..., modules=...): ...
    def __enter__(self): ...
    def __exit__(self, *exc_info): ...

class suppress_warnings:
    log: List[warnings.WarningMessage]
    def __init__(self, forwarding_rule=...): ...
    def filter(self, category=..., message=..., module=...): ...
    def record(self, category=..., message=..., module=...): ...
    def __enter__(self): ...
    def __exit__(self, *exc_info): ...
    def __call__(self, func): ...

verbose: int
IS_PYPY: Final[bool]
HAS_REFCOUNT: Final[bool]
HAS_LAPACK64: Final[bool]

def assert_(val, msg=...): ...
def memusage(processName=..., instance=...): ...
def jiffies(_proc_pid_stat=..., _load_time=...): ...
def build_err_msg(
    arrays,
    err_msg,
    header=...,
    verbose=...,
    names=...,
    precision=...,
): ...
def assert_equal(actual, desired, err_msg=..., verbose=...): ...
def print_assert_equal(test_string, actual, desired): ...
def assert_almost_equal(
    actual,
    desired,
    decimal=...,
    err_msg=...,
    verbose=...,
): ...
def assert_approx_equal(
    actual,
    desired,
    significant=...,
    err_msg=...,
    verbose=...,
): ...
def assert_array_compare(
    comparison,
    x,
    y,
    err_msg=...,
    verbose=...,
    header=...,
    precision=...,
    equal_nan=...,
    equal_inf=...,
): ...
def assert_array_equal(x, y, err_msg=..., verbose=...): ...
def assert_array_almost_equal(x, y, decimal=..., err_msg=..., verbose=...): ...
def assert_array_less(x, y, err_msg=..., verbose=...): ...
def runstring(astr, dict): ...
def assert_string_equal(actual, desired): ...
def rundocs(filename=..., raise_on_error=...): ...
def raises(*args): ...
def assert_raises(*args, **kwargs): ...
def assert_raises_regex(exception_class, expected_regexp, *args, **kwargs): ...
def decorate_methods(cls, decorator, testmatch=...): ...
def measure(code_str, times=..., label=...): ...
def assert_allclose(
    actual,
    desired,
    rtol=...,
    atol=...,
    equal_nan=...,
    err_msg=...,
    verbose=...,
): ...
def assert_array_almost_equal_nulp(x, y, nulp=...): ...
def assert_array_max_ulp(a, b, maxulp=..., dtype=...): ...
def assert_warns(warning_class, *args, **kwargs): ...
def assert_no_warnings(*args, **kwargs): ...
def tempdir(*args, **kwargs): ...
def temppath(*args, **kwargs): ...
def assert_no_gc_cycles(*args, **kwargs): ...
def break_cycles(): ...
def _assert_valid_refcount(op): ...
def _gen_alignment_data(dtype=..., type=..., max_size=...): ...