Added skype: to list of recognized but ignored URL schemes.

This commit is contained in:
Bastian Kleineidam 2010-07-29 20:26:04 +02:00
parent 0f92b76290
commit 761b292e37
3 changed files with 39 additions and 0 deletions

View file

@ -20,6 +20,8 @@ Changes:
- checking: Remove the unnormed URL warning. URLs can be written
in more than one way and there is no norm.
Closes: SF bug #1575800
- checking: Add "skype:" to list of ignored URL schemes.
Closes: SF bug #2989086
Features:
- ftp: Detect and support UTF-8 filename encoding capability of FTP

View file

@ -58,6 +58,7 @@ acap # application configuration access protocol
|javascript # JavaScript
|gopher # Gopher
|isbn # ISBN (int. book numbers)
|skype # Skype
):"""
ignored_schemes_re = re.compile(ignored_schemes, re.VERBOSE)

View file

@ -0,0 +1,36 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2010 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""
Test checking of unknown URLs.
"""
from . import LinkCheckTest
class TestUnknown (LinkCheckTest):
"""Test unknown URL scheme checking."""
def test_skype (self):
url = u"skype:"
nurl = self.norm(url)
resultlines = [
u"url %s" % url,
u"cache key %s" % nurl,
u"real url %s" % nurl,
u"warning Skype URL ignored.",
u"valid",
]
self.direct(url, resultlines)