|
|
@ -42,6 +42,7 @@ import sys |
|
|
|
import tempfile |
|
|
|
import tempfile |
|
|
|
import threading |
|
|
|
import threading |
|
|
|
import unittest |
|
|
|
import unittest |
|
|
|
|
|
|
|
import platform |
|
|
|
|
|
|
|
|
|
|
|
import grpc |
|
|
|
import grpc |
|
|
|
from grpc_tools import protoc |
|
|
|
from grpc_tools import protoc |
|
|
@ -150,6 +151,8 @@ class CommonTestMixin(object): |
|
|
|
self.assertEqual(expected_response, response) |
|
|
|
self.assertEqual(expected_response, response) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unittest.skipIf(platform.python_implementation() == "PyPy", |
|
|
|
|
|
|
|
"Skip test if run with PyPy") |
|
|
|
class SameSeparateTest(unittest.TestCase, SeparateTestMixin): |
|
|
|
class SameSeparateTest(unittest.TestCase, SeparateTestMixin): |
|
|
|
|
|
|
|
|
|
|
|
def setUp(self): |
|
|
|
def setUp(self): |
|
|
@ -191,6 +194,8 @@ class SameSeparateTest(unittest.TestCase, SeparateTestMixin): |
|
|
|
shutil.rmtree(self.directory) |
|
|
|
shutil.rmtree(self.directory) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unittest.skipIf(platform.python_implementation() == "PyPy", |
|
|
|
|
|
|
|
"Skip test if run with PyPy") |
|
|
|
class SameCommonTest(unittest.TestCase, CommonTestMixin): |
|
|
|
class SameCommonTest(unittest.TestCase, CommonTestMixin): |
|
|
|
|
|
|
|
|
|
|
|
def setUp(self): |
|
|
|
def setUp(self): |
|
|
@ -228,6 +233,8 @@ class SameCommonTest(unittest.TestCase, CommonTestMixin): |
|
|
|
shutil.rmtree(self.directory) |
|
|
|
shutil.rmtree(self.directory) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unittest.skipIf(platform.python_implementation() == "PyPy", |
|
|
|
|
|
|
|
"Skip test if run with PyPy") |
|
|
|
class SplitCommonTest(unittest.TestCase, CommonTestMixin): |
|
|
|
class SplitCommonTest(unittest.TestCase, CommonTestMixin): |
|
|
|
|
|
|
|
|
|
|
|
def setUp(self): |
|
|
|
def setUp(self): |
|
|
@ -277,6 +284,8 @@ class SplitCommonTest(unittest.TestCase, CommonTestMixin): |
|
|
|
shutil.rmtree(self.directory) |
|
|
|
shutil.rmtree(self.directory) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unittest.skipIf(platform.python_implementation() == "PyPy", |
|
|
|
|
|
|
|
"Skip test if run with PyPy") |
|
|
|
class SplitSeparateTest(unittest.TestCase, SeparateTestMixin): |
|
|
|
class SplitSeparateTest(unittest.TestCase, SeparateTestMixin): |
|
|
|
|
|
|
|
|
|
|
|
def setUp(self): |
|
|
|
def setUp(self): |
|
|
|