From b465c109eeeae38189e52c5498d6a884b11658e8 Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Wed, 29 Nov 2017 07:41:02 -0500 Subject: [PATCH] Fix test_editor_bdd.py for windows. - Use a raw string to handle windows path separators - Use SIGTERM instead of SIGUSR1 --- tests/end2end/features/test_editor_bdd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/end2end/features/test_editor_bdd.py b/tests/end2end/features/test_editor_bdd.py index 3421be88c..208ba60c4 100644 --- a/tests/end2end/features/test_editor_bdd.py +++ b/tests/end2end/features/test_editor_bdd.py @@ -79,10 +79,10 @@ def set_up_editor_wait(quteproc, server, tmpdir): import time import signal - with open('{pidfile}', 'w') as f: + with open(r'{pidfile}', 'w') as f: f.write(str(os.getpid())) - signal.signal(signal.SIGUSR1, lambda s, f: sys.exit(0)) + signal.signal(signal.SIGTERM, lambda s, f: sys.exit(0)) time.sleep(100) """.format(pidfile=pidfile))) @@ -95,4 +95,4 @@ def kill_editor_wait(quteproc, server, tmpdir): """Kill the waiting editor.""" pidfile = tmpdir / 'editor_pid' pid = int(pidfile.read()) - os.kill(pid, signal.SIGUSR1) + os.kill(pid, signal.SIGTERM)