diff --git a/master/custom/factories.py b/master/custom/factories.py index d4e703e7..23dd1228 100644 --- a/master/custom/factories.py +++ b/master/custom/factories.py @@ -72,6 +72,11 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs): # Adjust the timeout for this worker self.test_timeout *= kwargs.get("timeout_factor", 1) + # In 3.9 and 3.10, test_asyncio wasn't split out, and refleaks tests + # need more time. + if branch in ("3.9", "3.10") and has_option("-R", self.testFlags): + self.test_timeout *= 2 + if self.build_out_of_tree: self.addStep( ShellCommand(