Skip to content

Commit 43a6234

Browse files
icywang86ruiEliza Zhang
authored andcommitted
fix: fix flake8 errors and add flake8 run in buildspec.yml (aws#200)
1 parent 0849697 commit 43a6234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def skip_by_device_type(request, processor):
107107

108108
@pytest.fixture(autouse=True)
109109
def skip_gpu_instance_restricted_regions(region, instance_type):
110-
if((region in NO_P2_REGIONS and instance_type.startswith('ml.p2')) or
111-
(region in NO_P3_REGIONS and instance_type.startswith('ml.p3'))):
110+
if (region in NO_P2_REGIONS and instance_type.startswith('ml.p2')) or \
111+
(region in NO_P3_REGIONS and instance_type.startswith('ml.p3')):
112112
pytest.skip('Skipping GPU test in region {}'.format(region))
113113

114114

0 commit comments

Comments
 (0)