diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-06 12:32:03 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-06 12:56:53 +0100 |
| commit | d39073b8aea04dc5fe6b58bcb868067da08425fa (patch) | |
| tree | 958f31351982b9fc4fa2bcacbfb120d2b9c38aec | |
| parent | 607af78bb82404d55cc3e80e5f6772fb87c168ee (diff) | |
Hid Django installation message when verbosity is 0.
This message was introduced to help people figure out quickly when they
aren't running the tests against the copy of Django they're editing.
There's no reason to display it when verbosity is set to 0. It defaults
to 1.
| -rwxr-xr-x | tests/runtests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index 2f9cefc8c5..cd84deb40e 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -89,7 +89,8 @@ def get_installed(): def setup(verbosity, test_labels): - print("Testing against Django installed in '%s'" % os.path.dirname(django.__file__)) + if verbosity >= 1: + print("Testing against Django installed in '%s'" % os.path.dirname(django.__file__)) # Force declaring available_apps in TransactionTestCase for faster tests. def no_available_apps(self): |
