File: 0004-Remove-tests-from-test_email-that-require-dns.patch

package info (click to toggle)
python-formencode 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,880 kB
  • sloc: python: 6,564; makefile: 114; sh: 8
file content (32 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: "drnlmuller+debian@gmail.com" <drnlmuller+debian@gmail.com>
Date: Tue, 14 Jun 2016 14:40:12 +0200
Subject: Remove tests from test_email that require dns.

Some of the new tests in test_email also require dns. This patch
removes them so the build does not require network access.
---
 formencode/tests/test_email.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/formencode/tests/test_email.py b/formencode/tests/test_email.py
index 3ebf120..2305454 100644
--- a/formencode/tests/test_email.py
+++ b/formencode/tests/test_email.py
@@ -65,17 +65,3 @@ class TestEmail(unittest.TestCase):
 
         for email, expected in valid_email_addresses:
             self.assertEqual(self.validate(email), expected)
-
-
-class TestUnicodeEmailWithResolveDomain(unittest.TestCase):
-
-    def setUp(self):
-        self.validator = Email(resolve_domain=True)
-
-    def test_unicode_ascii_subgroup(self):
-        self.assertEqual(self.validator.to_python(
-            u'foo@yandex.com'), 'foo@yandex.com')
-
-    def test_cyrillic_email(self):
-        self.assertEqual(self.validator.to_python(
-            u'me@письмо.рф'), u'me@письмо.рф')