diff options
author | Florian Bruhin <git@the-compiler.org> | 2015-11-06 07:17:15 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2015-11-06 07:17:15 +0100 |
commit | 4c2e92c998fd235946781bd726cb4c535b8c16d4 (patch) | |
tree | 13db416e0bcedddc43b6ef2b49d11db70900a372 /tests | |
parent | 25ecd9068c099f98a7647efe7d63041ace5565d1 (diff) | |
download | qutebrowser-4c2e92c998fd235946781bd726cb4c535b8c16d4.tar.gz qutebrowser-4c2e92c998fd235946781bd726cb4c535b8c16d4.zip |
Make testprocess test more stable.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/test_testprocess.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/integration/test_testprocess.py b/tests/integration/test_testprocess.py index 6ef9f87ed..599234dc8 100644 --- a/tests/integration/test_testprocess.py +++ b/tests/integration/test_testprocess.py @@ -114,9 +114,8 @@ class TestWaitFor: """Make sure the message of a previous test gets ignored.""" pyproc.code = "print('foobar')" pyproc.start() - # We can't use wait_for here, as that'd actually test what the next - # test does. - time.sleep(0.5) + line = pyproc.wait_for(data="foobar") + line.waited_for = False # so we don't test what the next test does pyproc.after_test() with pytest.raises(testprocess.WaitForTimeout): pyproc.wait_for(data="foobar", timeout=100) |