Closed djmgit closed 5 years ago
Pow function should return ValueError when there are 3 arguments and the second argument is negative.
Batavia is returning TypeError for the above mentioned case. This is also causing the tests in tests/builts/test_pow to fail.
print(pow(1, -1, 1)
Batavia returns TypeError:
Traceback (most recent call last): File "/home/deep/batavia/test3.py", line 1, in <module> TypeError: pow() 2nd argument cannot be negative when 3rd argument specified
however python returns ValueError
Traceback (most recent call last): File "../test3.py", line 1, in <module> print(pow(2, -4, 1)) ValueError: pow() 2nd argument cannot be negative when 3rd argument specified
Operating System and Version (select from the following and list the specific version number; if your OS is not listed, list that as well)
I am working on this.
This was fixed by #784.
Expected Behavior
Pow function should return ValueError when there are 3 arguments and the second argument is negative.
Current Behavior
Batavia is returning TypeError for the above mentioned case. This is also causing the tests in tests/builts/test_pow to fail.
Steps to reproduce
Batavia returns TypeError:
however python returns ValueError
Your Environment
Operating System and Version (select from the following and list the specific version number; if your OS is not listed, list that as well)