aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/common/test_module2.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-17 10:15:45 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-17 10:18:25 -0700
commit151e35680b0b2575aa8bdb6bddbb95536be4fed0 (patch)
tree069cd44db3c97ddcab54cea2b77f65c6d4fdfb7b /tensorflow/tools/common/test_module2.py
parentf4162b7eafcb9c27292a9544b1a29f2fc7f54be6 (diff)
Change traverse_test.test_module to traverse a constructed dummy module rather than testcase itself.
PiperOrigin-RevId: 197010681
Diffstat (limited to 'tensorflow/tools/common/test_module2.py')
-rw-r--r--tensorflow/tools/common/test_module2.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tensorflow/tools/common/test_module2.py b/tensorflow/tools/common/test_module2.py
new file mode 100644
index 0000000000..d9da99d9c0
--- /dev/null
+++ b/tensorflow/tools/common/test_module2.py
@@ -0,0 +1,29 @@
+# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ==============================================================================
+"""A module target for TraverseTest.test_module."""
+
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
+
+
+class ModuleClass2(object):
+
+ def __init__(self):
+ pass
+
+ def __model_class1_method__(self):
+ pass
+