mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 16:56:13 +02:00
troubleshooting windows test failures on travis
This commit is contained in:
parent
4702e6c772
commit
6df0db1832
2 changed files with 12 additions and 8 deletions
|
@ -83,6 +83,10 @@ class FailedKeyring(keyring.backend.KeyringBackend):
|
|||
self.keys[servicename][username] = None
|
||||
|
||||
|
||||
# set a default keyring
|
||||
keyring.set_keyring(TestKeyring())
|
||||
|
||||
|
||||
def ushlex(command):
|
||||
return shlex.split(command, posix=not on_windows)
|
||||
|
||||
|
@ -458,7 +462,7 @@ def check_output_inline(context, text=None, text2=None):
|
|||
def check_error_output_inline(context, text=None, text2=None):
|
||||
text = text or context.text
|
||||
out = context.stderr_capture.getvalue()
|
||||
assert text in out or text2 in out, text or text2
|
||||
assert (text and text in out) or (text2 and text2 in out)
|
||||
|
||||
|
||||
@then('the output should match "{regex}"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue