You've already forked community.general
mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 07:41:16 +03:00
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:
@ -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):
|
||||
|
Reference in New Issue
Block a user