diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-12 19:10:25 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-12 19:10:28 +0100 |
commit | f5e5057ad90049f808a8e8ee932a0f77089e06f7 (patch) | |
tree | 6a2b77d774b3b2408aa6f20f12a8839b0fd3cad5 /tests/end2end/fixtures/quteprocess.py | |
parent | b91e23457858081ae79a74a953c50a7c9d53e319 (diff) | |
download | qutebrowser-f5e5057ad90049f808a8e8ee932a0f77089e06f7.tar.gz qutebrowser-f5e5057ad90049f808a8e8ee932a0f77089e06f7.zip |
tests: Further improve and stabilize screenshots
(cherry picked from commit 903e5e294301d8551c06e6f918b726a20a1d391c)
Diffstat (limited to 'tests/end2end/fixtures/quteprocess.py')
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index 9ef338768..47548cc63 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -919,8 +919,8 @@ class QuteProc(testprocess.Process): # Rendering might not be completed yet... time.sleep(0.5) - raise ValueError( - f"Pixel probing for {probe_color} failed (got {probed_color} on last try)") + # Using assert again for pytest introspection + assert probed_color == probe_color, "Color probing failed, values on last try:" def press_keys(self, keys): """Press the given keys using :fake-key.""" |