forked from scoutapp/scout_apm_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpytest.ini
79 lines (79 loc) · 4.89 KB
/
pytest.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[pytest]
addopts = --cov=scout_apm
--cov-report=term-missing:skip-covered
# Disable Nameko's built-in Pytest plugin because it does
# eventlet.monkey_patch() early on, but we want to test things in a
# non-eventlet world!
# It lead to this failure:
# cls = <class 'eventlet.green.ssl.GreenSSLSocket'>, sock = <eventlet.greenio.base.GreenSocket object at 0x10667e588>, keyfile = None, certfile = None, server_side = False, cert_reqs = <VerifyMode.CERT_NONE: 0>
# ssl_version = <_SSLMethod.PROTOCOL_TLS: 2>, ca_certs = None, do_handshake_on_connect = True, args = ()
# kw = {'_context': <eventlet.green.ssl.GreenSSLContext object at 0x104d6f480>, 'server_hostname': 's3-us-west-1.amazonaws.com'}
#
# def __new__(cls, sock=None, keyfile=None, certfile=None,
# server_side=False, cert_reqs=CERT_NONE,
# ssl_version=PROTOCOL_SSLv23, ca_certs=None,
# do_handshake_on_connect=True, *args, **kw):
# if _is_under_py_3_7:
# return super(GreenSSLSocket, cls).__new__(cls)
# else:
# if not isinstance(sock, GreenSocket):
# sock = GreenSocket(sock)
# with _original_ssl_context():
# ret = _original_wrap_socket(
# sock=sock.fd,
# keyfile=keyfile,
# certfile=certfile,
# server_side=server_side,
# cert_reqs=cert_reqs,
# ssl_version=ssl_version,
# ca_certs=ca_certs,
# do_handshake_on_connect=False,
# > *args, **kw
# )
# E TypeError: wrap_socket() got an unexpected keyword argument '_context'
-p no:pytest_nameko
norecursedirs = src
filterwarnings =
error
error::DeprecationWarning
error::PendingDeprecationWarning
always::ImportWarning
; Can't add these because ResourceWarning doesn't exist on Python 2:
; always::ResourceWarning
; ignore::ResourceWarning:httpretty.core
; Too many things in the Python universe haven't updated for these moves,
; so always ignore them:
ignore:the imp module is deprecated.*:DeprecationWarning
ignore:the imp module is deprecated.*:PendingDeprecationWarning
ignore:Using or importing the ABCs from 'collections'.*:DeprecationWarning
; Deprecations in our libraries
ignore:dns.hash module will be removed.*:DeprecationWarning:dns.hash
ignore:Pipeline\.hmset\(\) is deprecated\. Use Pipeline\.hset\(\) instead\.:DeprecationWarning
; importlib-metadata 3.9 raises deprecation for kombu compat code.
ignore:SelectableGroups dict interface is deprecated. Use select.:DeprecationWarning
; eventlet warning against use of Python 2.7
ignore:Support for your Python version is deprecated and will be removed in the future:DeprecationWarning:eventlet
; Appears in both gettext and Django:
ignore:parameter codeset is deprecated:DeprecationWarning
ignore:"errors" is deprecated. Use "encoding_errors" instead:DeprecationWarning:redis.client
; Triggered on Python 2.7 only:
ignore:unicode for buf is no longer accepted, use bytes:DeprecationWarning:urllib3.contrib.pyopenssl
; Triggered by asgiref on Python 3.7+:
ignore:.*Task.all_tasks\(\) is deprecated, use asyncio.all_tasks\(\) instead.*:PendingDeprecationWarning
ignore:.*Task.all_tasks\(\) is deprecated, use asyncio.all_tasks\(\) instead.*:DeprecationWarning
; Triggered by asgiref on Python 3.10+:
ignore:There is no current event loop.*:DeprecationWarning
; cryptography raises a deprecation warning on Python 2
ignore:Python 2 is no longer supported by the Python core team\..*
; cryptography raises a deprecation warning on Python 3.5
ignore:Python 3\.5 support will be dropped in the next release.*:UserWarning
; Django 3.1 warnings
; RemovedInDjango40Warning to be fixed in https://github.com/encode/django-rest-framework/issues/7406
ignore:django\.conf\.urls\.url\(\) is deprecated.*:PendingDeprecationWarning:rest_framework.routers
; Triggered by Django using Python 3.10+
ignore:The distutils package is deprecated and slated for removal in Python 3\.12\. Use setuptools or check PEP 632 for potential alternatives
; Triggered by cherrypy -> jarco/text -> importlib_resources
ignore:read_text is deprecated\. Use files\(\) instead\.:DeprecationWarning
ignore:open_text is deprecated\. Use files\(\) instead\.:DeprecationWarning
; ElasticSearch v8 will drop support for python < 3.6
ignore:Support for Python 3\.5 and earlier is deprecated and will be removed in v8\.0\.0:DeprecationWarning