python-future/python38-pow.patch
Matej Cepl 7fa3795973 Accepting request 734621 from home:mcepl:branches:devel:languages:python
- Add python38-compat.patch to fix compatibility with Python 3.8
  gh#PythonCharmers/python-future#447
- Add python38-pow.patch not to expect exception on new available
  parameters for Python 3.8. gh#PythonCharmers/python-future#474

OBS-URL: https://build.opensuse.org/request/show/734621
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-future?expand=0&rev=22
2019-10-02 14:11:43 +00:00

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
@@ -1286,7 +1286,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)