Skip to content

test_siginterrupt_off unnecessarily takes 30 minutes in refleak test  #120039

Closed
@colesbury

Description

@colesbury

Bug report

The test_siginterrupt_off test in test_signal expects a timeout and uses support.SHORT_TIMEOUT.

In at least some of the refleak test runners:

  • we bump the overall timeout to 200 minutes:
  • which adjusts support.SHORT_TIMEOUT to five minutes
  • and the test case is run six times

So the test always takes a minimum of 30 minutes.

stdout, stderr = process.communicate(timeout=support.SHORT_TIMEOUT)

@support.requires_resource('walltime')
def test_siginterrupt_off(self):
# If a signal handler is installed and siginterrupt is called with
# a false value for the second argument, when that signal arrives, it
# does not interrupt a syscall that's in progress.
interrupted = self.readpipe_interrupted(False)
self.assertFalse(interrupted)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions