From 5fdf7bdec6f74fa20302fe1a274b96fe5f18ac0b Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Mon, 28 Nov 2022 07:26:09 -0700 Subject: Fix one Windows-ism in TestCommonTests [skip appveyor] Signed-off-by: Mats Wichmann --- testing/framework/TestCommonTests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/framework/TestCommonTests.py b/testing/framework/TestCommonTests.py index 743feaf..ed10fa5 100644 --- a/testing/framework/TestCommonTests.py +++ b/testing/framework/TestCommonTests.py @@ -2217,11 +2217,11 @@ TypeError: forced TypeError tc.run() """) - self.SIGTERM = int(signal.SIGTERM) + self.SIGTERM = f"{'' if sys.platform == 'win32' else '-'}{signal.SIGTERM}" # Script returns the signal value as a negative number. expect_stdout = lstrip("""\ - %(signal_script)s returned -%(SIGTERM)s + %(signal_script)s returned %(SIGTERM)s STDOUT ========================================================================= STDERR ========================================================================= -- cgit v0.12