mirror of https://github.com/scrapy/scrapy.git
Fix or ignore flake8 problems.
This commit is contained in:
parent
a7b640991d
commit
922a66cf07
|
|
@ -226,6 +226,7 @@ flake8-ignore =
|
|||
tests/test_pipeline_files.py F401 E501 W293 E303 E272 E226
|
||||
tests/test_pipeline_images.py F401 F841 E501 E303
|
||||
tests/test_pipeline_media.py E501 E741 E731 E128 E261 E306 E502
|
||||
tests/test_proxy_connect.py E501 E741
|
||||
tests/test_request_cb_kwargs.py E501
|
||||
tests/test_responsetypes.py E501 E302 E305
|
||||
tests/test_robotstxt_interface.py F401 E302 E501 W291 E501
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import os
|
|||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
import sys
|
||||
import time
|
||||
|
||||
import pytest
|
||||
from six.moves.urllib.parse import urlsplit, urlunsplit
|
||||
|
|
@ -31,7 +30,7 @@ sys.argv[0] = "mitmdump"
|
|||
sys.exit(mitmdump())
|
||||
"""
|
||||
cert_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
|
||||
'keys', 'mitmproxy-ca.pem')
|
||||
'keys', 'mitmproxy-ca.pem')
|
||||
self.proc = Popen([sys.executable,
|
||||
'-c', script,
|
||||
'--listen-host', '127.0.0.1',
|
||||
|
|
@ -40,7 +39,7 @@ sys.exit(mitmdump())
|
|||
'--certs', cert_path,
|
||||
'--ssl-insecure',
|
||||
],
|
||||
stdout=PIPE, env=get_testenv())
|
||||
stdout=PIPE, env=get_testenv())
|
||||
line = self.proc.stdout.readline().decode('utf-8')
|
||||
host_port = re.search(r'listening at http://([^:]+:\d+)', line).group(1)
|
||||
address = 'http://%s:%s@%s' % (self.auth_user, self.auth_pass, host_port)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import six
|
|||
|
||||
from scrapy.utils.python import (
|
||||
memoizemethod_noargs, binary_is_text, equal_attributes,
|
||||
WeakKeyCache, stringify_dict, get_func_args, to_bytes, to_unicode,
|
||||
WeakKeyCache, get_func_args, to_bytes, to_unicode,
|
||||
without_none_values, MutableChain)
|
||||
|
||||
__doctests__ = ['scrapy.utils.python']
|
||||
|
|
|
|||
Loading…
Reference in New Issue