forked from pool/python-rope
- Add assertEquals.patch, obsolete_escape_strings.patch, and
Python38-compatibility.patch to deal with various deprecated warnings. - Switch off three tests to make the test suite pass under Python 3.8. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=35
This commit is contained in:
22
Python38-compatibility.patch
Normal file
22
Python38-compatibility.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
ropetest/advanced_oi_test.py | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/ropetest/advanced_oi_test.py
|
||||
+++ b/ropetest/advanced_oi_test.py
|
||||
@@ -241,12 +241,12 @@ class DynamicOITest(unittest.TestCase):
|
||||
for name in ('C', 'f', 'a_var', 'a_list', 'a_str', 'a_file'):
|
||||
var = pymod[name].get_object()
|
||||
self.assertEqual(to_textual.transform(var),
|
||||
- complex_to_textual(var))
|
||||
+ complex_to_textual(var), "name {}:".format(name))
|
||||
self.assertEqual(to_textual.transform(pymod),
|
||||
- complex_to_textual(pymod))
|
||||
+ complex_to_textual(pymod))
|
||||
enumerate_func = rope.base.builtins.builtins['enumerate'].get_object()
|
||||
self.assertEqual(to_textual.transform(enumerate_func),
|
||||
- complex_to_textual(enumerate_func))
|
||||
+ complex_to_textual(enumerate_func))
|
||||
|
||||
def test_arguments_with_keywords(self):
|
||||
mod = testutils.create_module(self.project, 'mod')
|
||||
Reference in New Issue
Block a user