2323# This (default) timeout is for each individual test file.
2424# It is a bit more than the default faulthandler timeout in regrtest.py
2525# (the latter isn't easily changed under Windows).
26- TEST_TIMEOUT = 20 * 60
26+ TEST_TIMEOUT = 20 * 60 # 20 minutes
27+
28+ # Refleak timeout (-R 3:3) for each individual test file.
29+ REFLEAK_TIMEOUT = 45 * 60 # 45 minutes
2730
2831
2932def step_timeout (timeout ):
@@ -154,10 +157,7 @@ class UnixVintageParserBuild(UnixBuild):
154157class UnixRefleakBuild (UnixBuild ):
155158 buildersuffix = ".refleak"
156159 testFlags = ["-R" , "3:3" , "-u-cpu" ]
157- # -R 3:3 is supposed to only require timeout x 6, but in practice,
158- # it's much more slower. Use timeout x 10 to prevent timeout
159- # caused by --huntrleaks.
160- test_timeout = TEST_TIMEOUT * 10
160+ test_timeout = REFLEAK_TIMEOUT
161161 factory_tags = ["refleak" ]
162162
163163
@@ -174,10 +174,7 @@ class UnixNoGilRefleakBuild(UnixBuild):
174174 buildersuffix = ".refleak.nogil"
175175 configureFlags = ["--with-pydebug" , "--disable-gil" ]
176176 testFlags = ["-R" , "3:3" , "-u-cpu" ]
177- # -R 3:3 is supposed to only require timeout x 6, but in practice,
178- # it's much more slower. Use timeout x 10 to prevent timeout
179- # caused by --huntrleaks.
180- test_timeout = TEST_TIMEOUT * 10
177+ test_timeout = REFLEAK_TIMEOUT
181178 factory_tags = ["nogil" , "refleak" ]
182179
183180
@@ -617,10 +614,7 @@ class WindowsBuild(BaseWindowsBuild):
617614class WindowsRefleakBuild (BaseWindowsBuild ):
618615 buildersuffix = ".x32.refleak"
619616 testFlags = ["-j2" , "-R" , "3:3" , "-u-cpu" ]
620- # -R 3:3 is supposed to only require timeout x 6, but in practice,
621- # it's much more slower. Use timeout x 10 to prevent timeout
622- # caused by --huntrleaks.
623- test_timeout = TEST_TIMEOUT * 10
617+ test_timeout = REFLEAK_TIMEOUT
624618 factory_tags = ["win32" , "refleak" ]
625619
626620
@@ -648,10 +642,7 @@ class Windows64BigmemBuild(BaseWindowsBuild):
648642class Windows64RefleakBuild (Windows64Build ):
649643 buildersuffix = ".refleak"
650644 testFlags = ["-p" , "x64" , * WindowsRefleakBuild .testFlags ]
651- # -R 3:3 is supposed to only require timeout x 6, but in practice,
652- # it's much more slower. Use timeout x 10 to prevent timeout
653- # caused by --huntrleaks.
654- test_timeout = TEST_TIMEOUT * 10
645+ test_timeout = REFLEAK_TIMEOUT
655646 factory_tags = ["win64" , "refleak" ]
656647
657648
0 commit comments