瀏覽代碼

Modify tests accordingly

Richard Belleville 5 年之前
父節點
當前提交
c1953880f7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py

+ 2 - 1
src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py

@@ -504,7 +504,8 @@ class PythonPluginTest(unittest.TestCase):
         service.server.stop(None)
 
 
-@unittest.skipIf(sys.version_info[0] < 3, "Unsupported on Python 2.")
+@unittest.skipIf(sys.version_info[0] < 3 or sys.version_info[1] < 6,
+                 "Unsupported on Python 2.")
 class SimpleStubsPluginTest(unittest.TestCase):
     servicer_methods = _ServicerMethods()