Commit d8dfc1a3 authored by Alexandre's avatar Alexandre
Browse files

New test on name or IP exception

parent 705ab6ed
......@@ -662,7 +662,7 @@ except TimeoutError:
except ConnectionRefusedError:
error("Connection to server refused")
except ValueError:
error(f'"{url}" not an name or an IP address')
error(f'"{url}" not a name or an IP address')
except CustomException as e:
error(e)
if ifile is not None:
......
......@@ -39,6 +39,17 @@ tests:
stderr: ''
partstdout: '2a01:4f8:'
- exe: './homer.py'
markers:
- 'exception'
args:
- '--dot'
- 'https//doh.bortzmeyer.fr'
- 'framagit.org'
retcode: 1
partstderr: 'not a name or'
stdout: ''
###############################################################################
- exe: './homer.py'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment