class documentation

class TestBinaryReprInsufficientWidthParameterForRepresentation(_DeprecationTestCase): (source)

View In Hierarchy

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. Such behavior is now considered unsafe from a user perspective and will raise an error in the future.

Method test_insufficient_width_negative Undocumented
Method test_insufficient_width_positive Undocumented
Instance Variable message Undocumented

Inherited from _DeprecationTestCase:

Method assert_deprecated Test if DeprecationWarnings are given and raised.
Method assert_not_deprecated Test that warnings are not raised.
Method setup_method Undocumented
Method teardown_method Undocumented
Instance Variable log Undocumented
Instance Variable warn_ctx Undocumented
def test_insufficient_width_negative(self): (source)

Undocumented

def test_insufficient_width_positive(self): (source)

Undocumented