class documentation
class TestBinaryReprInsufficientWidthParameterForRepresentation(_DeprecationTestCase): (source)
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 |
Undocumented |
Method | test |
Undocumented |
Instance Variable | message |
Undocumented |
Inherited from _DeprecationTestCase
:
Method | assert |
Test if DeprecationWarnings are given and raised. |
Method | assert |
Test that warnings are not raised. |
Method | setup |
Undocumented |
Method | teardown |
Undocumented |
Instance Variable | log |
Undocumented |
Instance Variable | warn |
Undocumented |