From b70c57a2cb6862ec8189d2d174200817cfb6f257 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 26 Oct 2018 11:22:33 +0100 Subject: [PATCH] tests: fix wstatus_to_str() test on 3.x Now they use enums. --- tests/parent_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parent_test.py b/tests/parent_test.py index edeb66b6..aaf335b8 100644 --- a/tests/parent_test.py +++ b/tests/parent_test.py @@ -79,7 +79,7 @@ class WstatusToStrTest(testlib.TestCase): (pid, status), _ = mitogen.core.io_op(os.waitpid, pid, 0) self.assertEquals( self.func(status), - 'exited due to signal %s (SIGKILL)' % (signal.SIGKILL,) + 'exited due to signal %s (SIGKILL)' % (int(signal.SIGKILL),) ) # can't test SIGSTOP without POSIX sessions rabbithole