File: replace-bd-tests.patch

package info (click to toggle)
python-publicsuffix2 2.20191221-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 608 kB
  • sloc: python: 950; sh: 5; makefile: 3
file content (76 lines) | stat: -rw-r--r-- 3,635 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Description: Replace .bd tests with .er tests
 Upstream has changed the handling of .bd domains, cf.
 https://github.com/publicsuffix/list/commit/30f4f4244cfef423c0150cfab53a5d89bc734f65,
 causing this package's .bd tests to fail, so replace them with a suitable
 substitute domain as done in publicsuffix-ruby, cf.
 https://github.com/weppos/publicsuffix-ruby/commit/edadce0f1091cbda3ce39f97cc0f654ad21f43d6.
Author: Florian Ernst <florian@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123293

Index: python-publicsuffix2-2.20191221/tests_mozilla.py
===================================================================
--- python-publicsuffix2-2.20191221.orig/tests_mozilla.py
+++ python-publicsuffix2-2.20191221/tests_mozilla.py
@@ -130,16 +130,16 @@ class TestPublicSuffixMozilla(unittest.T
         assert 'ac' == publicsuffix.get_tld('test.ac')
 
     def test_get_tld_TLD_with_only_1_wildcard_rule1(self):
-        assert 'bd' == publicsuffix.get_tld('bd')
+        assert 'er' == publicsuffix.get_tld('er')
 
     def test_get_tld_TLD_with_only_1_wildcard_rule2(self):
-        assert 'c.bd' == publicsuffix.get_tld('c.bd')
+        assert 'c.er' == publicsuffix.get_tld('c.er')
 
     def test_get_tld_TLD_with_only_1_wildcard_rule3(self):
-        assert 'c.bd' == publicsuffix.get_tld('b.c.bd')
+        assert 'c.er' == publicsuffix.get_tld('b.c.er')
 
     def test_get_tld_TLD_with_only_1_wildcard_rule4(self):
-        assert 'c.bd' == publicsuffix.get_tld('a.b.c.bd')
+        assert 'c.er' == publicsuffix.get_tld('a.b.c.er')
 
     def test_get_tld_More_complex_TLD1(self):
         assert 'jp' == publicsuffix.get_tld('jp')
@@ -394,16 +394,16 @@ class TestPublicSuffixMozillaStrict(unit
         assert 'ac' == publicsuffix.get_tld('test.ac', strict=True)
 
     def test_get_tld_TLD_with_only_1_wildcard_rule1(self):
-        assert 'bd' == publicsuffix.get_tld('bd', strict=True)
+        assert 'er' == publicsuffix.get_tld('er', strict=True)
 
     def test_get_tld_TLD_with_only_1_wildcard_rule2(self):
-        assert 'c.bd' == publicsuffix.get_tld('c.bd', strict=True)
+        assert 'c.er' == publicsuffix.get_tld('c.er', strict=True)
 
     def test_get_tld_TLD_with_only_1_wildcard_rule3(self):
-        assert 'c.bd' == publicsuffix.get_tld('b.c.bd', strict=True)
+        assert 'c.er' == publicsuffix.get_tld('b.c.er', strict=True)
 
     def test_get_tld_TLD_with_only_1_wildcard_rule4(self):
-        assert 'c.bd' == publicsuffix.get_tld('a.b.c.bd', strict=True)
+        assert 'c.er' == publicsuffix.get_tld('a.b.c.er', strict=True)
 
     def test_get_tld_More_complex_TLD1(self):
         assert 'jp' == publicsuffix.get_tld('jp', strict=True)
@@ -658,16 +658,16 @@ class TestPublicSuffixMozillaSld(unittes
         assert 'test.ac' == publicsuffix.get_sld('test.ac')
 
     def test_get_sld_tld_with_only_1_wildcard_rule1(self):
-        assert 'bd' == publicsuffix.get_sld('bd')
+        assert 'er' == publicsuffix.get_sld('er')
 
     def test_get_sld_tld_with_only_1_wildcard_rule2(self):
-        assert 'c.bd' == publicsuffix.get_sld('c.bd')
+        assert 'c.er' == publicsuffix.get_sld('c.er')
 
     def test_get_sld_tld_with_only_1_wildcard_rule3(self):
-        assert 'b.c.bd' == publicsuffix.get_sld('b.c.bd')
+        assert 'b.c.er' == publicsuffix.get_sld('b.c.er')
 
     def test_get_sld_tld_with_only_1_wildcard_rule4(self):
-        assert 'b.c.bd' == publicsuffix.get_sld('a.b.c.bd')
+        assert 'b.c.er' == publicsuffix.get_sld('a.b.c.er')
 
     def test_get_sld_More_complex_sld1(self):
         assert 'jp' == publicsuffix.get_sld('jp')