forked from pool/python-astor
- for python3, drop dependency on unittest2 - added patches + remove_unittest2.patch OBS-URL: https://build.opensuse.org/request/show/810582 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=17
21 lines
923 B
Diff
21 lines
923 B
Diff
Index: astor-0.8.1/tests/test_misc.py
|
|
===================================================================
|
|
--- astor-0.8.1.orig/tests/test_misc.py 2019-12-10 02:48:43.000000000 +0100
|
|
+++ astor-0.8.1/tests/test_misc.py 2020-05-29 14:40:33.063783987 +0200
|
|
@@ -26,6 +26,7 @@ class PublicAPITestCase(unittest.TestCas
|
|
def test_aliases(self):
|
|
self.assertIs(astor.parse_file, astor.code_to_ast.parse_file)
|
|
|
|
+ @unittest.skip("unittest2 required")
|
|
def test_codegen_from_root(self):
|
|
with self.assertWarns(DeprecationWarning) as cm:
|
|
astor = import_fresh_module('astor')
|
|
@@ -37,6 +38,7 @@ class PublicAPITestCase(unittest.TestCas
|
|
'astor.codegen is deprecated. Please use astor.code_gen.'
|
|
)
|
|
|
|
+ @unittest.skip("unittest2 required")
|
|
def test_codegen_as_submodule(self):
|
|
with self.assertWarns(DeprecationWarning) as cm:
|
|
import astor.codegen
|