From 6da7cd0ea5f661e57124698da18ed7fee1284c30 Mon Sep 17 00:00:00 2001 From: David de Sousa Date: Wed, 22 Jun 2016 16:54:25 +0200 Subject: [PATCH] Fixing pep8 errors in boto tests --- tests/integration/test_boto.py | 8 ++++---- tests/integration/test_boto3.py | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/integration/test_boto.py b/tests/integration/test_boto.py index 404f045..af7295c 100644 --- a/tests/integration/test_boto.py +++ b/tests/integration/test_boto.py @@ -6,11 +6,11 @@ import boto.iam # NOQA from boto.s3.connection import S3Connection # NOQA from boto.s3.key import Key # NOQA import vcr # NOQA -try: # NOQA - from ConfigParser import DuplicateSectionError # NOQA -except ImportError: # NOQA +try: # NOQA + from ConfigParser import DuplicateSectionError # NOQA +except ImportError: # NOQA # python3 - from configparser import DuplicateSectionError # NOQA + from configparser import DuplicateSectionError # NOQA def test_boto_stubs(tmpdir): diff --git a/tests/integration/test_boto3.py b/tests/integration/test_boto3.py index 007309a..bd35558 100644 --- a/tests/integration/test_boto3.py +++ b/tests/integration/test_boto3.py @@ -1,8 +1,8 @@ import pytest boto3 = pytest.importorskip("boto3") -import boto3 -import vcr +import boto3 # NOQA +import vcr # NOQA bucket = 'boto3-demo-1337' # a bucket you can access key = 'test/my_test.txt' # key with r+w access @@ -65,4 +65,3 @@ def test_boto_hardcore_mode(tmpdir): o = s3_resource.Object(bucket, key).get() assert content == o['Body'].read().decode('utf-8') assert cass.all_played -