mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
Skip "official" tests on pypy
inspect.signature() seems to return a string instead of an actual signature on pypy
This commit is contained in:
parent
9264264a02
commit
5b9bb904c2
1 changed files with 4 additions and 3 deletions
|
@ -2,6 +2,7 @@ import sys
|
|||
import inspect
|
||||
import warnings
|
||||
from collections import namedtuple
|
||||
import platform
|
||||
|
||||
import certifi
|
||||
import logging
|
||||
|
@ -110,9 +111,9 @@ def check_object(h4):
|
|||
|
||||
|
||||
def test_official():
|
||||
if not sys.version_info >= (3, 5):
|
||||
warnings.warn('Not running tests, since follow_wrapped is not supported on this platform'
|
||||
'(python version >= 3.5 required)')
|
||||
if not sys.version_info >= (3, 5) or platform.python_implementation() != 'CPython':
|
||||
warnings.warn('Not running "official" tests, since follow_wrapped is not supported'
|
||||
'on this platform (cpython version >= 3.5 required)')
|
||||
return
|
||||
|
||||
http = urllib3.PoolManager(
|
||||
|
|
Loading…
Add table
Reference in a new issue