File python312-skip-tests.patch of Package failed_python-autopep8
From 6ebcb3cfadd9b8764405e1cab24f4412f05b36bb Mon Sep 17 00:00:00 2001
From: Hideo Hattori <hhatto.jp@gmail.com>
Date: Mon, 9 Oct 2023 22:12:07 +0900
Subject: [PATCH] skip tests for python3.12+
---
test/test_autopep8.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/test_autopep8.py b/test/test_autopep8.py
index c64143d7..4c314e52 100755
--- a/test/test_autopep8.py
+++ b/test/test_autopep8.py
@@ -4418,6 +4418,7 @@ def test_e731_with_default_arguments(self):
with autopep8_context(line, options=['--select=E731']) as result:
self.assertEqual(fixed, result)
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_e901_should_cause_indentation_screw_up(self):
line = """\
def tmp(g):
@@ -5466,6 +5467,7 @@ def test_help(self):
stdout=PIPE)
self.assertIn('usage:', p.communicate()[0].decode('utf-8').lower())
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_verbose(self):
line = 'bad_syntax)'
with temporary_file_context(line) as filename:
@@ -7206,6 +7208,7 @@ def f(self):
with autopep8_context(line, options=['--experimental']) as result:
self.assertEqual(fixed, result)
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_e501_experimental_parsing_dict_with_comments(self):
line = """\
self.display['xxxxxxxxxxxx'] = [{'title': _('Library'), #. This is the first comment.
@@ -7229,6 +7232,7 @@ def test_e501_experimental_parsing_dict_with_comments(self):
with autopep8_context(line, options=['--experimental']) as result:
self.assertEqual(fixed, result)
+ @unittest.skipIf(sys.version_info >= (3, 12), 'not detech in Python3.12+')
def test_e501_experimental_if_line_over_limit(self):
line = """\
if not xxxxxxxxxxxx(aaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbb, cccccccccccccc, dddddddddddddddddddddd):