Skip to content

Commit 5b9bb90

Browse files
committed
Skip "official" tests on pypy
inspect.signature() seems to return a string instead of an actual signature on pypy
1 parent 9264264 commit 5b9bb90

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_official.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import inspect
33
import warnings
44
from collections import namedtuple
5+
import platform
56

67
import certifi
78
import logging
@@ -110,9 +111,9 @@ def check_object(h4):
110111

111112

112113
def test_official():
113-
if not sys.version_info >= (3, 5):
114-
warnings.warn('Not running tests, since follow_wrapped is not supported on this platform'
115-
'(python version >= 3.5 required)')
114+
if not sys.version_info >= (3, 5) or platform.python_implementation() != 'CPython':
115+
warnings.warn('Not running "official" tests, since follow_wrapped is not supported'
116+
'on this platform (cpython version >= 3.5 required)')
116117
return
117118

118119
http = urllib3.PoolManager(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy