changing the texts of the errors
This commit is contained in:
parent
b74b069153
commit
a676cca6c5
@ -56,7 +56,7 @@ class Option:
|
||||
@attr.s
|
||||
class Migrations:
|
||||
|
||||
"""Nigrated options in configdata.yml.
|
||||
"""Migrated options in configdata.yml.
|
||||
|
||||
Attributes:
|
||||
renamed: A dict mapping old option names to new names.
|
||||
|
@ -1622,6 +1622,14 @@ url.yank_ignored_parameters:
|
||||
- utm_content
|
||||
desc: URL parameters to strip with `:yank url`.
|
||||
|
||||
url.yank_remove_password:
|
||||
type: Bool
|
||||
default: true
|
||||
desc: |
|
||||
Remove the password with `:yank url`.
|
||||
|
||||
E.g.
|
||||
|
||||
## window
|
||||
|
||||
window.hide_wayland_decoration:
|
||||
|
@ -85,17 +85,16 @@ from qutebrowser.utils import urlmatch
|
||||
# Additional tests
|
||||
("http://[", "Invalid IPv6 URL"),
|
||||
("http://[fc2e:bb88::edac]:", "Invalid port: Port is empty"),
|
||||
("http://[fc2e::bb88::edac]", """Invalid IPv6 address (character ':' not permitted); source was "[fc2e::bb88::edac]"; host = """""),
|
||||
("http://[fc2e:0e35:bb88::edac:fc2e:0e35:bb88:edac]", 'Invalid IPv6 address; source was "[fc2e:0e35:bb88::edac:fc2e:0e35:bb88:edac]"; host = ""'),
|
||||
("http://[fc2e:0e35:bb88:af:edac:fc2e:0e35:bb88:edac]", 'Invalid IPv6 address; source was "[fc2e:0e35:bb88:af:edac:fc2e:0e35:bb88:edac]"; host = ""'),
|
||||
("http://[127.0.0.1:fc2e::bb88:edac]", """Invalid IPv6 address (character '1' not permitted); source was "[127.0.0.1:fc2e::bb88:edac]"; host = """""),
|
||||
("http://[fc2e::bb88::edac]", 'Invalid IPv6 address; source was "fc2e::bb88::edac"; host = ""'),
|
||||
("http://[fc2e:0e35:bb88::edac:fc2e:0e35:bb88:edac]", 'Invalid IPv6 address; source was "fc2e:0e35:bb88::edac:fc2e:0e35:bb88:edac"; host = ""'),
|
||||
("http://[fc2e:0e35:bb88:af:edac:fc2e:0e35:bb88:edac]", 'Invalid IPv6 address; source was "fc2e:0e35:bb88:af:edac:fc2e:0e35:bb88:edac"; host = ""'),
|
||||
("http://[127.0.0.1:fc2e::bb88:edac]", 'Invalid IPv6 address; source was "127.0.0.1:fc2e::bb88:edac'),
|
||||
("http://[]:20", "Pattern without host"),
|
||||
("http://[fc2e::bb88", "Invalid IPv6 URL"),
|
||||
("http://[[fc2e::bb88:edac]", """Invalid IPv6 address (character '[' not permitted); source was "[[fc2e::bb88:edac]"; host = """""),
|
||||
pytest.param("http://[fc2e::bb88:edac]]", "Invalid IPv6 URL", marks=pytest.mark.xfail(
|
||||
reason="https://bugs.python.org/issue34360")),
|
||||
("http://[fc2e:bb88:edac]", 'Invalid IPv6 address; source was "[fc2e:bb88:edac]"; host = ""'),
|
||||
("http://[fc2e:bb88:edac::z]", """Invalid IPv6 address (character 'z' not permitted); source was "[fc2e:bb88:edac::z]"; host = """""),
|
||||
("http://[[fc2e::bb88:edac]", """Expected ']' to match '[' in hostname; source was "[fc2e::bb88:edac"; host = """""),
|
||||
pytest.param("http://[fc2e::bb88:edac]]", "Invalid IPv6 URL", marks=pytest.mark.xfail(reason="https://bugs.python.org/issue34360")),
|
||||
("http://[fc2e:bb88:edac]", 'Invalid IPv6 address; source was "fc2e:bb88:edac"; host = ""'),
|
||||
("http://[fc2e:bb88:edac::z]", 'Invalid IPv6 address; source was "fc2e:bb88:edac::z"; host = ""'),
|
||||
("http://[fc2e:bb88:edac::2]:2a2", "Invalid port: invalid literal for int() with base 10: '2a2'"),
|
||||
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user