aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-21 15:17:03 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-21 15:21:11 -0700
commit9655bbd9d67a62b4af399100201918f138316dac (patch)
treef32c40d38034ea34133eb2c7b3b3b707c81dd185 /tensorflow/python/kernel_tests
parent08776e73286651617c0c07785ea1476bfabb962a (diff)
This CL disables tf.print tests that change logging levels on Windows. These tests will still be run in a different test target that does not run on Windows.
PiperOrigin-RevId: 214052241
Diffstat (limited to 'tensorflow/python/kernel_tests')
-rw-r--r--tensorflow/python/kernel_tests/logging_ops_test.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tensorflow/python/kernel_tests/logging_ops_test.py b/tensorflow/python/kernel_tests/logging_ops_test.py
index cf0beba3c3..b24a0d0f9b 100644
--- a/tensorflow/python/kernel_tests/logging_ops_test.py
+++ b/tensorflow/python/kernel_tests/logging_ops_test.py
@@ -34,7 +34,6 @@ from tensorflow.python.ops import math_ops
from tensorflow.python.ops import string_ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import test
-from tensorflow.python.platform import tf_logging
class LoggingOpsTest(test.TestCase):
@@ -273,39 +272,6 @@ class PrintV2Test(test.TestCase):
self.assertTrue((expected + "\n") in printed.contents())
@test_util.run_in_graph_and_eager_modes()
- def testPrintOneTensorLogInfo(self):
- with self.test_session():
- tensor = math_ops.range(10)
- with self.captureWritesToStream(sys.stderr) as printed:
- print_op = logging_ops.print_v2(
- tensor, output_stream=tf_logging.info)
- self.evaluate(print_op)
- expected = "[0 1 2 ... 7 8 9]"
- self.assertTrue(expected in printed.contents())
-
- @test_util.run_in_graph_and_eager_modes()
- def testPrintOneTensorLogWarning(self):
- with self.test_session():
- tensor = math_ops.range(10)
- with self.captureWritesToStream(sys.stderr) as printed:
- print_op = logging_ops.print_v2(
- tensor, output_stream=tf_logging.warning)
- self.evaluate(print_op)
- expected = "[0 1 2 ... 7 8 9]"
- self.assertTrue(expected in printed.contents())
-
- @test_util.run_in_graph_and_eager_modes()
- def testPrintOneTensorLogError(self):
- with self.test_session():
- tensor = math_ops.range(10)
- with self.captureWritesToStream(sys.stderr) as printed:
- print_op = logging_ops.print_v2(
- tensor, output_stream=tf_logging.error)
- self.evaluate(print_op)
- expected = "[0 1 2 ... 7 8 9]"
- self.assertTrue(expected in printed.contents())
-
- @test_util.run_in_graph_and_eager_modes()
def testInvalidOutputStreamRaisesError(self):
with self.test_session():
tensor = math_ops.range(10)