From 53f3821d41af76bb8d28e65b9d57367fc973561b Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 17 Nov 2018 23:23:28 +0700 Subject: [PATCH] Change test that randomly fails on Travis. --- tests/utils/test_asyncio.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/utils/test_asyncio.py b/tests/utils/test_asyncio.py index 36bfe548..004704f1 100644 --- a/tests/utils/test_asyncio.py +++ b/tests/utils/test_asyncio.py @@ -49,11 +49,9 @@ def test_exception_wait_run_in_executor(loop): def test_subprocess_check_output(loop, tmpdir, restore_original_path): path = str(tmpdir / "test") - with open(path, "w+") as f: - f.write("TEST") - exec = subprocess_check_output("cat", path) + exec = subprocess_check_output("echo", "-n", path) result = loop.run_until_complete(asyncio.ensure_future(exec)) - assert result == "TEST" + assert result == path def test_wait_for_process_termination(loop):