forked from pool/python-ast-decompiler
* Support Python 3.12 and 3.13; stop testing Python 3.6 and 3.7 * Fix all DeprecationWarnings in the codebase - Refresh no-relative-imports.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ast-decompiler?expand=0&rev=3
75 lines
3.2 KiB
Diff
75 lines
3.2 KiB
Diff
diff -Nru ast_decompiler-0.8.0.orig/tests/test_basic.py ast_decompiler-0.8.0/tests/test_basic.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_basic.py 2024-05-17 11:24:40.473753700 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_basic.py 2024-11-08 10:13:46.230356472 +0000
|
|
@@ -1,6 +1,6 @@
|
|
import ast
|
|
from ast_decompiler import decompile
|
|
-from .tests import assert_decompiles, check
|
|
+from tests import assert_decompiles, check
|
|
|
|
|
|
def test_non_module() -> None:
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_indentation.py ast_decompiler-0.8.0/tests/test_indentation.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_indentation.py 2024-05-17 11:24:40.473753700 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_indentation.py 2024-11-08 10:13:46.230356472 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import assert_decompiles
|
|
+from tests import assert_decompiles
|
|
|
|
|
|
def test_indentation() -> None:
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_line_length.py ast_decompiler-0.8.0/tests/test_line_length.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_line_length.py 2024-05-17 11:24:40.473753700 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_line_length.py 2024-11-08 10:13:46.234356491 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import assert_decompiles
|
|
+from tests import assert_decompiles
|
|
|
|
|
|
def check_split(original: str, multiline: str, length_reduction: int = 2) -> None:
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_literal.py ast_decompiler-0.8.0/tests/test_literal.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_literal.py 2024-05-17 11:24:40.473753700 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_literal.py 2024-11-08 10:13:46.234356491 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import assert_decompiles
|
|
+from tests import assert_decompiles
|
|
|
|
|
|
def test_With() -> None:
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_patma.py ast_decompiler-0.8.0/tests/test_patma.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_patma.py 2024-05-17 11:24:40.473753700 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_patma.py 2024-11-08 10:13:46.234356491 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import check, skip_before
|
|
+from tests import check, skip_before
|
|
|
|
|
|
@skip_before((3, 10))
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_pep695.py ast_decompiler-0.8.0/tests/test_pep695.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_pep695.py 2024-05-17 11:24:40.477753600 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_pep695.py 2024-11-08 10:13:46.234356491 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import check, skip_before
|
|
+from tests import check, skip_before
|
|
|
|
|
|
@skip_before((3, 12))
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_precedence.py ast_decompiler-0.8.0/tests/test_precedence.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_precedence.py 2024-05-17 11:24:40.477753600 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_precedence.py 2024-11-08 10:13:46.238356510 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import check
|
|
+from tests import check
|
|
|
|
|
|
def test_Yield() -> None:
|
|
diff -Nru ast_decompiler-0.8.0.orig/tests/test_py3_syntax.py ast_decompiler-0.8.0/tests/test_py3_syntax.py
|
|
--- ast_decompiler-0.8.0.orig/tests/test_py3_syntax.py 2024-05-17 11:24:40.477753600 +0000
|
|
+++ ast_decompiler-0.8.0/tests/test_py3_syntax.py 2024-11-08 10:13:46.238356510 +0000
|
|
@@ -1,4 +1,4 @@
|
|
-from .tests import check
|
|
+from tests import check
|
|
|
|
|
|
def test_MatMult() -> None:
|