Skip to content

__truediv__ is broken for num / bm #2

@timlnx

Description

@timlnx
======================================================================
ERROR: truediv: number / bitmath = number
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tbielawa/Projects/bitmath/tests/test_future_math.py", line 61, in test_number_div_bitmath_is_number
    result = num1 / bm1
TypeError: unsupported operand type(s) for /: 'int' and 'KiB'

----------------------------------------------------------------------
Ran 3 tests in 0.001s

FAILED (errors=1)

However, bm / bm and bm / num work properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions