aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/tests/unit/_links/_proto_scenarios.py
diff options
context:
space:
mode:
authorGravatar Leifur Halldor Asgeirsson <lasgeirsson@zerofail.com>2016-03-04 12:46:55 -0500
committerGravatar Leifur Halldor Asgeirsson <lasgeirsson@zerofail.com>2016-03-18 15:58:19 -0400
commit1abda1f02ba2412ae845f1427370c52cef821756 (patch)
tree34eaf15b1fbda1ad4fe941f31ab0f967d4e223db /src/python/grpcio/tests/unit/_links/_proto_scenarios.py
parent4302be789d89703d48f033c44720f828765f1467 (diff)
specify metaclasses in a py3-compatible way
Diffstat (limited to 'src/python/grpcio/tests/unit/_links/_proto_scenarios.py')
-rw-r--r--src/python/grpcio/tests/unit/_links/_proto_scenarios.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/python/grpcio/tests/unit/_links/_proto_scenarios.py b/src/python/grpcio/tests/unit/_links/_proto_scenarios.py
index f69ff51b16..acd4891390 100644
--- a/src/python/grpcio/tests/unit/_links/_proto_scenarios.py
+++ b/src/python/grpcio/tests/unit/_links/_proto_scenarios.py
@@ -1,4 +1,4 @@
-# Copyright 2015, Google Inc.
+# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -32,13 +32,14 @@
import abc
import threading
+import six
+
from tests.unit._junkdrawer import math_pb2
from tests.unit.framework.common import test_constants
-class ProtoScenario(object):
+class ProtoScenario(six.with_metaclass(abc.ABCMeta)):
"""An RPC test scenario using protocol buffers."""
- __metaclass__ = abc.ABCMeta
@abc.abstractmethod
def group_and_method(self):