Skip to content

Commit

Permalink
Skip split_definitions_test if PyPy
Browse files Browse the repository at this point in the history
Skip SameSeparateTest, SameCommonTest, SplitCommonTest, and
SplitSeparateTest if the interpreter is PyPy.
  • Loading branch information
Siddharth Shukla committed Mar 12, 2017
1 parent 0b7bd20 commit fe6bc69
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import tempfile
import threading
import unittest
import platform

import grpc
from grpc_tools import protoc
Expand Down Expand Up @@ -150,6 +151,8 @@ def testCall(self):
self.assertEqual(expected_response, response)


@unittest.skipIf(platform.python_implementation() == "PyPy",
"Skip test if run with PyPy")
class SameSeparateTest(unittest.TestCase, SeparateTestMixin):

def setUp(self):
Expand Down Expand Up @@ -191,6 +194,8 @@ def tearDown(self):
shutil.rmtree(self.directory)


@unittest.skipIf(platform.python_implementation() == "PyPy",
"Skip test if run with PyPy")
class SameCommonTest(unittest.TestCase, CommonTestMixin):

def setUp(self):
Expand Down Expand Up @@ -228,6 +233,8 @@ def tearDown(self):
shutil.rmtree(self.directory)


@unittest.skipIf(platform.python_implementation() == "PyPy",
"Skip test if run with PyPy")
class SplitCommonTest(unittest.TestCase, CommonTestMixin):

def setUp(self):
Expand Down Expand Up @@ -277,6 +284,8 @@ def tearDown(self):
shutil.rmtree(self.directory)


@unittest.skipIf(platform.python_implementation() == "PyPy",
"Skip test if run with PyPy")
class SplitSeparateTest(unittest.TestCase, SeparateTestMixin):

def setUp(self):
Expand Down

0 comments on commit fe6bc69

Please sign in to comment.