Skip to content

Commit 35cadc1

Browse files
committed
Don't show deprecation warning during tests for verbosity < 2
- Legacy-Id: 7205
1 parent 908aacc commit 35cadc1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/utils/test_runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3434

3535
import socket, re, os, time, importlib
36+
import warnings
3637

3738
from django.conf import settings
3839
from django.template import TemplateDoesNotExist
@@ -68,6 +69,8 @@ def safe_create_1(self, verbosity, *args, **kwargs):
6869
module = importlib.import_module(".".join(components[:-1]))
6970
fn = getattr(module, components[-1])
7071
fn()
72+
if verbosity < 2:
73+
warnings.simplefilter("ignore", DeprecationWarning)
7174

7275
return test_database_name
7376

0 commit comments

Comments
 (0)