diff options
author | Florian Bruhin <git@the-compiler.org> | 2015-11-05 07:39:31 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2015-11-05 07:39:31 +0100 |
commit | 10e52c6e9f90a5770d587484bbaca5ef180c1b8b (patch) | |
tree | 8d4fb154b7d7598606edb07f129b47a9ec47e2fb /tests | |
parent | bf74fda5b2cc8d27fbf8b44fdb9cb139114f53f1 (diff) | |
download | qutebrowser-10e52c6e9f90a5770d587484bbaca5ef180c1b8b.tar.gz qutebrowser-10e52c6e9f90a5770d587484bbaca5ef180c1b8b.zip |
Make testprocess test more robust.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/test_testprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/test_testprocess.py b/tests/integration/test_testprocess.py index 1442802f1..4441514c7 100644 --- a/tests/integration/test_testprocess.py +++ b/tests/integration/test_testprocess.py @@ -121,9 +121,9 @@ class TestWaitFor: def test_existing_message_previous_test(self, pyproc): """Make sure the message of a previous test gets ignored.""" - pyproc.code = "print('foobar')" + pyproc.code = "import time; time.sleep(0.1); print('foobar')" pyproc.start() - time.sleep(0.5) # to make sure the message is printed + pyproc.wait_for(data="foobar") pyproc.after_test() with pytest.raises(testprocess.WaitForTimeout): pyproc.wait_for(data="foobar", timeout=100) |