23
23
# This (default) timeout is for each individual test file.
24
24
# It is a bit more than the default faulthandler timeout in regrtest.py
25
25
# (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
27
30
28
31
29
32
def step_timeout (timeout ):
@@ -154,10 +157,7 @@ class UnixVintageParserBuild(UnixBuild):
154
157
class UnixRefleakBuild (UnixBuild ):
155
158
buildersuffix = ".refleak"
156
159
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
161
161
factory_tags = ["refleak" ]
162
162
163
163
@@ -174,10 +174,7 @@ class UnixNoGilRefleakBuild(UnixBuild):
174
174
buildersuffix = ".refleak.nogil"
175
175
configureFlags = ["--with-pydebug" , "--disable-gil" ]
176
176
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
181
178
factory_tags = ["nogil" , "refleak" ]
182
179
183
180
@@ -617,10 +614,7 @@ class WindowsBuild(BaseWindowsBuild):
617
614
class WindowsRefleakBuild (BaseWindowsBuild ):
618
615
buildersuffix = ".x32.refleak"
619
616
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
624
618
factory_tags = ["win32" , "refleak" ]
625
619
626
620
@@ -648,10 +642,7 @@ class Windows64BigmemBuild(BaseWindowsBuild):
648
642
class Windows64RefleakBuild (Windows64Build ):
649
643
buildersuffix = ".refleak"
650
644
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
655
646
factory_tags = ["win64" , "refleak" ]
656
647
657
648
0 commit comments