[PR #9496/43d5d6e2 backport][stable-10] remove code handling unsupported Python versions (#9502)

remove code handling unsupported Python versions (#9496)

* remove code handling unsupported Python versions

* drop unused import

* remove no longer needed ignore lines

(cherry picked from commit 43d5d6e2ce)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2024-12-31 10:46:15 +01:00 committed by GitHub
parent 9afc096cd2
commit f99508b307
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1 additions and 99 deletions

View file

@ -12,7 +12,6 @@ from ansible_collections.community.general.plugins.callback.loganalytics import
from datetime import datetime
import json
import sys
class TestAzureLogAnalytics(unittest.TestCase):
@ -28,10 +27,6 @@ class TestAzureLogAnalytics(unittest.TestCase):
self.mock_host = Mock('MockHost')
self.mock_host.name = 'myhost'
# Add backward compatibility
if sys.version_info < (3, 2):
self.assertRegex = self.assertRegexpMatches
@patch('ansible_collections.community.general.plugins.callback.loganalytics.now')
@patch('ansible_collections.community.general.plugins.callback.loganalytics.open_url')
def test_overall(self, open_url_mock, mock_now):