mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
[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:
parent
9afc096cd2
commit
f99508b307
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