How to suppress verbose Tensorflow logging? [duplicate]

2.0 Update (10/8/19) Setting TF_CPP_MIN_LOG_LEVEL should still work (see below in v0.12+ update), but there is currently an issue open (see issue #31870). If setting TF_CPP_MIN_LOG_LEVEL does not work for you (again, see below), try doing the following to set the log level: import tensorflow as tf tf.get_logger().setLevel(‘INFO’) In addition, please see the documentation on … Read more

Python Nose Import Error

You’ve got an __init__.py in your top level directory. That makes it a package. If you remove it, your nosetests should work. If you don’t remove it, you’ll have to change your import to import dir.foo, where dir is the name of your directory.

Getting Python’s unittest results in a tearDown() method

As of March 2022 this answer is updated to support Python versions between 3.4 and 3.11 (including the newest development Python version). Classification of errors / failures is the same that is used in the output unittest. It works without any modification of code before tearDown(). It correctly recognizes decorators skipIf() and expectedFailure. It is … Read more