logging_test.py
imports googletest from tensorflow.python.platformimports tensorflow.python.platform
SHA-256e88bd6b65c7e15b7ccf0261aa6bada3ef90715cadd90f83b6e5a5f1dca61bf2c
MaleculeH(Cm)Md(In₃)
Evidence
1# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under …
11:46… D, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ==============================================================================
15
16from tensorflow.python.platform import googletest
17from tensorflow.python.platform import tf_logging as logging
18
19
20class EventLoaderTest(googletest.TestCase):
21
22 def test_log(self):
23 # Just check that logging works without raising an exception.
24 logging.error("test log message")
25
26
27if __name__ == "__main__":
28 googletest.main()