forked from pool/python-future
- Fix min/max functions with generators, and 'None' default (PR #514) - Use BaseException in raise_() (PR #515) - Fix builtins.round() for Decimals (Issue #501) - Fix raise_from() to prevent failures with immutable classes (PR #518) - Make FixInput idempotent (Issue #427) - Fix type in newround (PR #521) - Support mimetype guessing in urllib2 for Py3.8+ (Issue #508) - fix for raise_() when passed an exception that's not an Exception (e.g. BaseException subclasses) - Rebase future-correct-mimetype.patch to revert incorrect fix in gh#PythonCharmers/python-future#508 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-future?expand=0&rev=27
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
---
|
|
tests/test_past/test_builtins.py | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
--- a/tests/test_past/test_builtins.py
|
|
+++ b/tests/test_past/test_builtins.py
|
|
@@ -1117,9 +1117,7 @@ class BuiltinTest(unittest.TestCase):
|
|
else:
|
|
self.assertAlmostEqual(pow(x, y, z), 24.0)
|
|
|
|
- self.assertRaises(TypeError, pow, -1, -2, 3)
|
|
self.assertRaises(ValueError, pow, 1, 2, 0)
|
|
- self.assertRaises(TypeError, pow, -1, -2, 3)
|
|
self.assertRaises(ValueError, pow, 1, 2, 0)
|
|
# Will return complex in 3.0:
|
|
self.assertRaises(ValueError, pow, -342.43, 0.234)
|
|
--- a/tests/test_future/test_builtins.py
|
|
+++ b/tests/test_future/test_builtins.py
|
|
@@ -1305,7 +1305,6 @@ class BuiltinTest(unittest.TestCase):
|
|
self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j)
|
|
|
|
# Raises TypeError in Python < v3.5, ValueError in v3.5:
|
|
- self.assertRaises((TypeError, ValueError), pow, -1, -2, 3)
|
|
self.assertRaises(ValueError, pow, 1, 2, 0)
|
|
|
|
self.assertRaises(TypeError, pow)
|