Skip to content
Snippets Groups Projects
Commit f0f58e68 authored by siddharthshukla's avatar siddharthshukla
Browse files

skip test run if running with pypy

don't run cygrpc_test.TypeSmokeTest.testCallCredentialsFromPluginUpdown
if the interpreter is PyPy
parent f14effb6
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
import time import time
import threading import threading
import unittest import unittest
import platform
from grpc._cython import cygrpc from grpc._cython import cygrpc
from tests.unit._cython import test_utilities from tests.unit._cython import test_utilities
...@@ -113,6 +114,9 @@ class TypeSmokeTest(unittest.TestCase): ...@@ -113,6 +114,9 @@ class TypeSmokeTest(unittest.TestCase):
lambda ignored_a, ignored_b: None, b'') lambda ignored_a, ignored_b: None, b'')
del plugin del plugin
@unittest.skipIf(
platform.python_implementation() == "PyPy",
'TODO(issue 7672): figure out why this fails on PyPy')
def testCallCredentialsFromPluginUpDown(self): def testCallCredentialsFromPluginUpDown(self):
plugin = cygrpc.CredentialsMetadataPlugin(_metadata_plugin_callback, b'') plugin = cygrpc.CredentialsMetadataPlugin(_metadata_plugin_callback, b'')
call_credentials = cygrpc.call_credentials_metadata_plugin(plugin) call_credentials = cygrpc.call_credentials_metadata_plugin(plugin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment