Skip to content

Commit 559a81b

Browse files
authored
Fix GitHub Action Issues in Python 3.10 and 3.11 (#3380)
1 parent b5a0b8e commit 559a81b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ filterwarnings =
2020
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
2121
# Pytest warnings
2222
ignore::pytest.PytestUnraisableExceptionWarning
23+
# https://github.com/urllib3/urllib3/blob/main/src/urllib3/poolmanager.py#L313
24+
ignore::DeprecationWarning:urllib3.*:

tests/plugins/application/test_serverless_app_plugin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import sys
21
from unittest import TestCase
32
from unittest.mock import Mock, patch
43

54
import boto3
6-
import pytest
75
from botocore.exceptions import ClientError
86
from samtranslator.model.exceptions import InvalidResourceException
97
from samtranslator.plugins.application.serverless_app_plugin import ServerlessAppPlugin
@@ -53,7 +51,6 @@ def mock_get_region(self, service_name, region_name):
5351
return "us-east-1"
5452

5553

56-
@pytest.mark.skipif(sys.version_info > (3, 10), reason="Test fails for python versions >3.10")
5754
class TestServerlessAppPlugin_init(TestCase):
5855
def setUp(self):
5956
client = boto3.client("serverlessrepo", region_name="us-east-1")
@@ -118,7 +115,6 @@ def test_not_used_when_sar_client_provided(self):
118115
self.client_mock.assert_not_called()
119116

120117

121-
@pytest.mark.skipif(sys.version_info > (3, 10), reason="Test fails for python versions >3.10")
122118
class TestServerlessAppPlugin_on_before_transform_template_translate(TestCase):
123119
def setUp(self):
124120
client = boto3.client("serverlessrepo", region_name="us-east-1")

0 commit comments

Comments
 (0)