tests: fix wstatus_to_str() test on 3.x

Now they use enums.
This commit is contained in:
David Wilson 2018-10-26 11:22:33 +01:00
parent f343bbba3a
commit b70c57a2cb
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class WstatusToStrTest(testlib.TestCase):
(pid, status), _ = mitogen.core.io_op(os.waitpid, pid, 0) (pid, status), _ = mitogen.core.io_op(os.waitpid, pid, 0)
self.assertEquals( self.assertEquals(
self.func(status), 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 # can't test SIGSTOP without POSIX sessions rabbithole