Skip to content

Commit 92cb544

Browse files
zoyahavtf-transform-team
authored andcommitted
Minor test change
PiperOrigin-RevId: 275856332
1 parent 194a328 commit 92cb544

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tensorflow_transform/graph_tools_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import abc
2121
import collections
22+
import os
2223

2324
# GOOGLE-INITIALIZATION
2425

@@ -944,7 +945,8 @@ class GraphToolsTestUniquePath(test_case.TransformTestCase):
944945
}),
945946
dict(
946947
testcase_name='_y_function_of_x_with_tf_while',
947-
should_skip_test=tf.__version__.startswith('1.15'),
948+
should_skip_test=not os.environ.get('TEST_WORKSPACE',
949+
'').startswith('google'),
948950
create_graph_fn=_create_graph_with_tf_function_while,
949951
feeds=['x'],
950952
replaced_tensors_ready={'x': False},
@@ -1085,7 +1087,7 @@ def testGetUniquePath(self,
10851087
# environments.
10861088
if should_skip_test:
10871089
raise unittest.SkipTest(
1088-
'TF version 1.15 can have unexpected behaviour affecting this test')
1090+
'This test is not currently supported.')
10891091

10901092
with tf.compat.v1.Graph().as_default() as graph:
10911093
tensors = create_graph_fn()

0 commit comments

Comments
 (0)