class documentation

class TestBinaryReprInsufficientWidthParameterForRepresentation(_DeprecationTestCase):

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 Undocumented
Method teardown Undocumented
Instance Variable log Undocumented
Instance Variable warn​_ctx Undocumented
def test_insufficient_width_negative(self):

Undocumented

def test_insufficient_width_positive(self):

Undocumented