module documentation

Tests related to deprecation warnings. Also a convenient place to document how deprecations should eventually be turned into errors.

Class BuiltInRoundComplexDType Undocumented
Class FlatteningConcatenateUnsafeCast Undocumented
Class Test_GetSet_NumericOps Undocumented
Class TestArrayDataAttributeAssignmentDeprecation Assigning the 'data' attribute of an ndarray is unsafe as pointed out in gh-7093. Eventually, such assignment should NOT be allowed, but in the interests of maintaining backwards compatibility, only a Deprecation- Warning will be raised instead for the time being to give developers time to refactor relevant code.
Class TestArrayFinalizeNone Undocumented
Class TestAxisNotMAXDIMS Undocumented
Class TestBinaryReprInsufficientWidthParameterForRepresentation If a 'width' parameter is passed into binary_repr that is insufficient to represent the number in base 2 (positive) or 2's complement (negative) form, the function used to silently ignore the parameter and return a representation using the minimal number of bits needed for the form in question...
Class TestBincount Undocumented
Class TestComparisonDeprecations This tests the deprecation, for non-element-wise comparison logic. This used to mean that when an error occurred during element-wise comparison (i.e. broadcasting) NotImplemented was returned, but also in the comparison itself, False was given instead of the error.
Class TestCtypesGetter Undocumented
Class TestDatetime64Timezone Parsing of datetime64 with timezones deprecated in 1.11.0, because datetime64 is now timezone naive rather than UTC only.
Class TestDatetimeEvent Undocumented
Class TestDeprecatedGlobals Undocumented
Class TestDeprecatedUnpickleObjectScalar Technically, it should be impossible to create numpy object scalars, but there was an unpickle path that would in theory allow it. That path is invalid and must lead to the warning.
Class TestDeprecateSubarrayDTypeDuringArrayCoercion Undocumented
Class TestDTypeAttributeIsDTypeDeprecation Undocumented
Class TestDTypeCoercion Undocumented
Class TestFromstring Undocumented
Class TestFromStringAndFileInvalidData Undocumented
Class TestFutureWarningArrayLikeNotIterable No class docstring; 0/1 class variable, 2/5 methods documented
Class TestGeneratorSum Undocumented
Class TestIncorrectAdvancedIndexWithEmptyResult Undocumented
Class TestLoadtxtParseIntsViaFloat Undocumented
Class TestMachAr Undocumented
Class TestMatrixInOuter Undocumented
Class TestMemEventHook Undocumented
Class TestNonExactMatchDeprecation Undocumented
Class TestNonNumericConjugate Deprecate no-op behavior of ndarray.conjugate on non-numeric dtypes, which conflicts with the error behavior of np.conjugate.
Class TestNonZero Undocumented
Class TestNoseDecoratorsDeprecated Undocumented
Class TestNPY_CHAR Undocumented
Class TestPartitionBoolIndex Undocumented
Class TestPositiveOnNonNumerical Undocumented
Class TestPyArray_AS1D Undocumented
Class TestPyArray_AS2D Undocumented
Class TestPyIntConversion Undocumented
Class TestQuantileInterpolationDeprecation Undocumented
Class TestRemovedGlobals Undocumented
Class TestShape1Fields Undocumented
Class TestSingleElementSignature Undocumented
Class TestTestDeprecated Undocumented
Class TestToString Undocumented
Class TestTruthTestingEmptyArrays Undocumented
Function test_future_scalar_attributes Undocumented
Constant PARTITION_DICT Undocumented
Class _DeprecationTestCase No class docstring; 0/2 instance variable, 0/1 class variable, 2/4 methods documented
Class _VisibleDeprecationTestCase Undocumented
Variable _has_pytz Undocumented
@pytest.mark.parametrize('name', ['bool', 'long', 'ulong', 'str', 'bytes', 'object'])
def test_future_scalar_attributes(name): (source)

Undocumented

PARTITION_DICT = (source)

Undocumented

Value
{'partition method': np.arange(10).partition,
 'argpartition method': np.arange(10).argpartition,
 'partition function': (lambda kth: np.partition(np.arange(10), kth)),
 'argpartition function': (lambda kth: np.argpartition(np.arange(10), kth))}
_has_pytz: bool = (source)

Undocumented