forked from pool/python-tld
- update to version 0.8: - This release contains backward incompatible changes. You should update your code. Old `get_tld` functionality remain is moved to `get_fld` (first-level domain definition). The `as_object` argument (False by default) has been deprecated for `get_fld`. Have a look at the packages' documentation and changelog for details and examples. - Move to a Trie to match TLDs. This brings a speed up of 15-20%. - It's now possible to search in public, private or all suffixes (old behaviour). Use `search_public` and `search_private` arguments accordingly. By default (to support old behavior), both are set to True. - Correct TLD definitions. - Domains like `*****.xn--fiqs8s` are now recognized as well. - Due to usage of `urlsplit` instead of `urlparse`, the initial list of TLDs is assembled quicker (a speed-up of 15-20%). - Docs/ directory is included in source distribution tarball. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=6
17 lines
521 B
Diff
17 lines
521 B
Diff
--- tld-0.8/src/tld/tests1.py 2018-07-07 10:19:47.235166666 +0200
|
|
+++ tld-0.8/src/tld/tests.py 2018-07-07 10:20:05.779258621 +0200
|
|
@@ -266,13 +266,6 @@
|
|
return res
|
|
|
|
@log_info
|
|
- def test_1_update_tld_names(self):
|
|
- """Test updating the tld names (re-fetch mozilla source)."""
|
|
- res = update_tld_names(fail_silently=True)
|
|
- self.assertTrue(res)
|
|
- return res
|
|
-
|
|
- @log_info
|
|
def test_2_fld_good_patterns_pass(self):
|
|
"""Test good URL patterns."""
|
|
res = []
|