__truediv__ is broken for num / bm #2

Closed
tbielawa opened this Issue Mar 30, 2014 · 0 comments

Projects

None yet

1 participant

@tbielawa
Owner
======================================================================
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.

@tbielawa tbielawa added the bug label Mar 30, 2014
@tbielawa tbielawa added the tests label Jul 13, 2014
@tbielawa tbielawa closed this in fa02807 Jul 29, 2014
@tbielawa tbielawa added a commit that referenced this issue Jul 29, 2014
@tbielawa Python 3.3 support
Thanks to @davidfischer-ch for the PR

Closes #2
Closes #5

Now supports proper __truediv__ in 2.x and 3.x for num/bm and num/bm
4e649d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment