Fixed tests

This commit is contained in:
Michael Lazar
2017-05-10 21:40:40 -07:00
parent 29584acd3a
commit 1c66c5662f
4 changed files with 10 additions and 7 deletions

View File

@@ -46,7 +46,6 @@ def copy_linux(text):
cmd_name = get_command_name()
if cmd_name is None:
raise ProgramError("External copy application not found,\n"
"try installing either `xsel` or `xclip`")
raise ProgramError("External copy application not found")
_subprocess_copy(text, cmd_args.get(cmd_name))

View File

@@ -340,7 +340,7 @@ class Page(object):
except (ProgramError, OSError) as e:
_logger.exception(e)
self.term.show_notification(
'Failed to copy permalink to clipboard\n{0}'.format(e))
'Failed to copy permalink: {0}'.format(e))
else:
self.term.show_notification(
'Copied permalink to clipboard', timeout=1)
@@ -362,7 +362,7 @@ class Page(object):
except (ProgramError, OSError) as e:
_logger.exception(e)
self.term.show_notification(
'Failed to copy url to clipboard\n{0}'.format(e))
'Failed to copy url: {0}'.format(e))
else:
self.term.show_notification(
'Copied url to clipboard', timeout=1)