[issue21193] pow(a, b, c) should not raise TypeError when b is negative and c is provided
Josh Rosenberg
report at bugs.python.org
Thu Apr 10 05:55:14 CEST 2014
Josh Rosenberg added the comment:
Here's the trivial patch for code and the associated unit test (we were actually testing that it raised TypeError specifically; it now raises ValueError, and the unit test expects ValueError).
unit tests passed aside from test_io, but I'm pretty sure that's unrelated; my Linux VM freezes up once in a while, which does nasty things to timing dependent I/O tests.
----------
keywords: +patch
Added file: http://bugs.python.org/file34780/pow_typeerror_to_valueerror.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21193>
_______________________________________
More information about the Python-bugs-list
mailing list