Skip to content

Commit 8a6301c

Browse files
umaannamalaihmstepanek
authored andcommitted
Remove imports for moto on py37. (#1053)
1 parent b65dc36 commit 8a6301c

File tree

7 files changed

+0
-44
lines changed

7 files changed

+0
-44
lines changed

tests/external_botocore/test_boto3_iam.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131

3232
MOTO_VERSION = get_package_version_tuple("moto")
3333

34-
# patch earlier versions of moto to support py37
35-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
36-
import re
37-
38-
moto.packages.responses.responses.re._pattern_type = re.Pattern
39-
4034
AWS_ACCESS_KEY_ID = "AAAAAAAAAAAACCESSKEY"
4135
AWS_SECRET_ACCESS_KEY = "AAAAAASECRETKEY" # nosec (This is fine for testing purposes)
4236

tests/external_botocore/test_boto3_s3.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929

3030
MOTO_VERSION = get_package_version_tuple("moto")
3131

32-
# patch earlier versions of moto to support py37
33-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
34-
import re
35-
36-
moto.packages.responses.responses.re._pattern_type = re.Pattern
37-
3832
AWS_ACCESS_KEY_ID = "AAAAAAAAAAAACCESSKEY"
3933
AWS_SECRET_ACCESS_KEY = "AAAAAASECRETKEY" # nosec
4034
AWS_REGION_NAME = "us-west-2"

tests/external_botocore/test_boto3_sns.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131

3232
MOTO_VERSION = get_package_version_tuple("moto")
3333

34-
# patch earlier versions of moto to support py37
35-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
36-
import re
37-
38-
moto.packages.responses.responses.re._pattern_type = re.Pattern
39-
4034
AWS_ACCESS_KEY_ID = "AAAAAAAAAAAACCESSKEY"
4135
AWS_SECRET_ACCESS_KEY = "AAAAAASECRETKEY" # nosec (This is fine for testing purposes)
4236
AWS_REGION_NAME = "us-east-1"

tests/external_botocore/test_botocore_dynamodb.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131

3232
MOTO_VERSION = get_package_version_tuple("moto")
3333

34-
# patch earlier versions of moto to support py37
35-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
36-
import re
37-
38-
moto.packages.responses.responses.re._pattern_type = re.Pattern
39-
40-
4134
AWS_ACCESS_KEY_ID = "AAAAAAAAAAAACCESSKEY"
4235
AWS_SECRET_ACCESS_KEY = "AAAAAASECRETKEY" # nosec (This is fine for testing purposes)
4336
AWS_REGION = "us-east-1"

tests/external_botocore/test_botocore_ec2.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131

3232
MOTO_VERSION = get_package_version_tuple("moto")
3333

34-
# patch earlier versions of moto to support py37
35-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
36-
import re
37-
38-
moto.packages.responses.responses.re._pattern_type = re.Pattern
39-
4034
AWS_ACCESS_KEY_ID = "AAAAAAAAAAAACCESSKEY"
4135
AWS_SECRET_ACCESS_KEY = "AAAAAASECRETKEY" # nosec (This is fine for testing purposes)
4236
AWS_REGION = "us-east-1"

tests/external_botocore/test_botocore_s3.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@
3030
MOTO_VERSION = MOTO_VERSION = get_package_version_tuple("moto")
3131
BOTOCORE_VERSION = get_package_version_tuple("botocore")
3232

33-
34-
# patch earlier versions of moto to support py37
35-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
36-
import re
37-
38-
moto.packages.responses.responses.re._pattern_type = re.Pattern
39-
4033
AWS_ACCESS_KEY_ID = "AAAAAAAAAAAACCESSKEY"
4134
AWS_SECRET_ACCESS_KEY = "AAAAAASECRETKEY" # nosec
4235
AWS_REGION = "us-east-1"

tests/external_botocore/test_botocore_sqs.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@
3030
MOTO_VERSION = get_package_version_tuple("moto")
3131
BOTOCORE_VERSION = get_package_version_tuple("botocore")
3232

33-
# patch earlier versions of moto to support py37
34-
if sys.version_info >= (3, 7) and MOTO_VERSION <= (1, 3, 1):
35-
import re
36-
37-
moto.packages.responses.responses.re._pattern_type = re.Pattern
38-
3933
url = "sqs.us-east-1.amazonaws.com"
4034

4135
if BOTOCORE_VERSION < (1, 29, 0):

0 commit comments

Comments
 (0)