Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__truediv__ is broken for num / bm #2

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

__truediv__ is broken for num / bm #2

tbielawa opened this issue Mar 30, 2014 · 0 comments

Comments

@tbielawa
Copy link
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 added a commit that referenced this issue Jul 29, 2014
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant