tests: Dump contents in WaitForClipboardTimeout.
This commit is contained in:
parent
aecf410707
commit
0d9cbba3b9
@ -403,8 +403,12 @@ def _wait_for_clipboard(qtbot, clipboard, mode, expected):
|
|||||||
QClipboard.Selection: 'primary selection',
|
QClipboard.Selection: 'primary selection',
|
||||||
}
|
}
|
||||||
raise WaitForClipboardTimeout(
|
raise WaitForClipboardTimeout(
|
||||||
"Timed out after {}ms waiting for {} in {}.".format(
|
"Timed out after {}ms waiting for {} in {} (clipboard: {!r}, "
|
||||||
timeout, expected, mode_names[mode]))
|
"primary {!r}).".format(
|
||||||
|
timeout, expected, mode_names[mode],
|
||||||
|
clipboard.text(mode=QClipboard.Clipboard),
|
||||||
|
clipboard.text(mode=QClipboard.Selection))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@bdd.then(bdd.parsers.re(r'the (?P<what>primary selection|clipboard) should '
|
@bdd.then(bdd.parsers.re(r'the (?P<what>primary selection|clipboard) should '
|
||||||
|
Loading…
Reference in New Issue
Block a user