File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -838,11 +838,11 @@ def test_itimer_real(self):
838838 def test_itimer_virtual (self ):
839839 self .itimer = signal .ITIMER_VIRTUAL
840840 signal .signal (signal .SIGVTALRM , self .sig_vtalrm )
841- signal .setitimer (self .itimer , 0.3 , 0.2 )
841+ signal .setitimer (self .itimer , 0.001 , 0.001 )
842842
843843 for _ in support .busy_retry (support .LONG_TIMEOUT ):
844844 # use up some virtual time by doing real work
845- _ = sum ( i * i for i in range ( 10 ** 5 ) )
845+ _ = pow ( 12345 , 67890 , 10000019 )
846846 if signal .getitimer (self .itimer ) == (0.0 , 0.0 ):
847847 # sig_vtalrm handler stopped this itimer
848848 break
@@ -859,7 +859,7 @@ def test_itimer_prof(self):
859859
860860 for _ in support .busy_retry (support .LONG_TIMEOUT ):
861861 # do some work
862- _ = sum ( i * i for i in range ( 10 ** 5 ) )
862+ _ = pow ( 12345 , 67890 , 10000019 )
863863 if signal .getitimer (self .itimer ) == (0.0 , 0.0 ):
864864 # sig_prof handler stopped this itimer
865865 break
You can’t perform that action at this time.
0 commit comments