remove code handling unsupported Python versions (#9496)

* remove code handling unsupported Python versions

* drop unused import

* remove no longer needed ignore lines
This commit is contained in:
Alexei Znamensky 2024-12-31 22:37:10 +13:00 committed by GitHub
parent 7f3fef3038
commit 43d5d6e2ce
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):