mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 05:49:09 -07: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:
parent
7f3fef3038
commit
43d5d6e2ce
6 changed files with 1 additions and 99 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue