From 3d96540b80eeb6cd544a053e9076148457dbe0c4 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 1 Nov 2010 23:46:37 +0000 Subject: [PATCH] Added a filter to silence the RuntimeWarning in the Indonesian localflavor tests. Thanks to Alex for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14418 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/localflavor/id.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regressiontests/forms/localflavor/id.py b/tests/regressiontests/forms/localflavor/id.py index e17aa87856..247303aa36 100644 --- a/tests/regressiontests/forms/localflavor/id.py +++ b/tests/regressiontests/forms/localflavor/id.py @@ -4,6 +4,8 @@ tests = r""" # IDPhoneNumberField ######################################################## +>>> import warnings +>>> warnings.filterwarnings("ignore", category=RuntimeWarning, module='django.contrib.localflavor.id.id_choices') >>> from django.contrib.localflavor.id.forms import IDPhoneNumberField >>> f = IDPhoneNumberField(required=False)