@@ -58,47 +58,47 @@ def test_exponential_sleep_generator_base_2(uniform):
5858 assert result == [1 , 2 , 4 , 8 , 16 , 32 , 60 , 60 ]
5959
6060
61- def test__build_retry_error_empty_list ():
61+ def test_build_retry_error_empty_list ():
6262 """
6363 attempt to build a retry error with no errors encountered
6464 should return a generic RetryError
6565 """
66- from google .api_core .retry import _build_retry_error
66+ from google .api_core .retry import build_retry_error
6767 from google .api_core .retry import RetryFailureReason
6868
6969 reason = RetryFailureReason .NON_RETRYABLE_ERROR
70- src , cause = _build_retry_error ([], reason , 10 )
70+ src , cause = build_retry_error ([], reason , 10 )
7171 assert isinstance (src , exceptions .RetryError )
7272 assert cause is None
7373 assert src .message == "Unknown error"
7474
7575
76- def test__build_retry_error_timeout_message ():
76+ def test_build_retry_error_timeout_message ():
7777 """
7878 should provide helpful error message when timeout is reached
7979 """
80- from google .api_core .retry import _build_retry_error
80+ from google .api_core .retry import build_retry_error
8181 from google .api_core .retry import RetryFailureReason
8282
8383 reason = RetryFailureReason .TIMEOUT
8484 cause = RuntimeError ("timeout" )
85- src , found_cause = _build_retry_error ([ValueError (), cause ], reason , 10 )
85+ src , found_cause = build_retry_error ([ValueError (), cause ], reason , 10 )
8686 assert isinstance (src , exceptions .RetryError )
8787 assert src .message == "Timeout of 10.0s exceeded"
8888 # should attach appropriate cause
8989 assert found_cause is cause
9090
9191
92- def test__build_retry_error_empty_timeout ():
92+ def test_build_retry_error_empty_timeout ():
9393 """
9494 attempt to build a retry error when timeout is None
9595 should return a generic timeout error message
9696 """
97- from google .api_core .retry import _build_retry_error
97+ from google .api_core .retry import build_retry_error
9898 from google .api_core .retry import RetryFailureReason
9999
100100 reason = RetryFailureReason .TIMEOUT
101- src , _ = _build_retry_error ([], reason , None )
101+ src , _ = build_retry_error ([], reason , None )
102102 assert isinstance (src , exceptions .RetryError )
103103 assert src .message == "Timeout exceeded"
104104
0 commit comments