Skip to content

testing/py3-nptyping: disable tests

omni requested to merge omni/aports:disable-tests-py3-nptyping into master

to make things move on on the package builders, !64072 (merged) wasn't enough

=================================== FAILURES ===================================
__________________________ TypeguardTest.test_success __________________________

self = <tests.test_typeguard.TypeguardTest testMethod=test_success>

    def test_success(self):
>       fun(np.random.randn(2, 2))

tests/test_typeguard.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_typeguard.py:14: in fun
    def fun(_: NDArray[Shape["2, 2"], Float]) -> None:
nptyping/base_meta_classes.py:145: in __getitem__
    args = cls._get_item(item)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = Shape['*, ...'], item = (2, 2)

    def _get_item(cls, item: Any) -> Tuple[Any, ...]:
        if not isinstance(item, str):
>           raise InvalidArgumentsError(
                f"Unexpected argument of type {type(item)}, expecting a string."
            )
E           nptyping.error.InvalidArgumentsError: Unexpected argument of type <class 'tuple'>, expecting a string.

nptyping/base_meta_classes.py:213: InvalidArgumentsError
=============================== warnings summary ===============================
nptyping/typing_.py:51
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:51: DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`.  (Deprecated NumPy 1.24)
    Bool8 = np.bool8

nptyping/typing_.py:54
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:54: DeprecationWarning: `np.object0` is a deprecated alias for ``np.object0` is a deprecated alias for `np.object_
`. `object` can be used instead.  (Deprecated NumPy 1.24)`.  (Deprecated NumPy 1.24)
    Object0 = np.object0

nptyping/typing_.py:66
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:66: DeprecationWarning: `np.int0` is a deprecated alias for `np.intp`.  (Deprecated NumPy 1.24)
    Int0 = np.int0

nptyping/typing_.py:80
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:80: DeprecationWarning: `np.uint0` is a deprecated alias for `np.uintp`.  (Deprecated NumPy 1.24)
    UInt0 = np.uint0

nptyping/typing_.py:107
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:107: DeprecationWarning: `np.void0` is a deprecated alias for `np.void`.  (Deprecated NumPy 1.24)
    Void0 = np.void0

nptyping/typing_.py:112
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:112: DeprecationWarning: `np.bytes0` is a deprecated alias for `np.bytes_`.  (Deprecated NumPy 1.24)
    Bytes0 = np.bytes0

nptyping/typing_.py:114
  /home/buildozer/aports/testing/py3-nptyping/src/nptyping-2.5.0/nptyping/typing_.py:114: DeprecationWarning: `np.str0` is a deprecated alias for `np.str_`.  (Deprecated NumPy 1.24)
    Str0 = np.str0

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_typeguard.py::TypeguardTest::test_success - nptyping.error....

Merge request reports