File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1717
1818import asyncio
1919import builtins
20+ import functools
2021import random
2122import socket
2223import sys
4142
4243
4344def _handle_reauth (func : F ) -> F :
45+ @functools .wraps (func )
4446 async def inner (* args : Any , ** kwargs : Any ) -> Any :
4547 no_reauth = kwargs .pop ("no_reauth" , False )
4648 from pymongo .asynchronous .pool import AsyncConnection
@@ -88,6 +90,7 @@ async def _backoff(
8890
8991
9092def _retry_overload (func : F ) -> F :
93+ @functools .wraps (func )
9194 async def inner (* args : Any , ** kwargs : Any ) -> Any :
9295 no_retry = kwargs .pop ("no_retry" , False )
9396 attempt = 0
Original file line number Diff line number Diff line change 1717
1818import asyncio
1919import builtins
20+ import functools
2021import random
2122import socket
2223import sys
4142
4243
4344def _handle_reauth (func : F ) -> F :
45+ @functools .wraps (func )
4446 def inner (* args : Any , ** kwargs : Any ) -> Any :
4547 no_reauth = kwargs .pop ("no_reauth" , False )
4648 from pymongo .message import _BulkWriteContext
@@ -88,6 +90,7 @@ def _backoff(
8890
8991
9092def _retry_overload (func : F ) -> F :
93+ @functools .wraps (func )
9194 def inner (* args : Any , ** kwargs : Any ) -> Any :
9295 no_retry = kwargs .pop ("no_retry" , False )
9396 attempt = 0
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- """Test the CSOT unified spec tests ."""
15+ """Test Client Backpressure spec."""
1616from __future__ import annotations
1717
1818import sys
3838}
3939
4040
41- class TestCSOT (AsyncIntegrationTest ):
41+ class TestBackpressure (AsyncIntegrationTest ):
4242 RUN_ON_LOAD_BALANCER = True
4343
4444 @async_client_context .require_failCommand_appName
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- """Test the CSOT unified spec tests ."""
15+ """Test Client Backpressure spec."""
1616from __future__ import annotations
1717
1818import sys
3838}
3939
4040
41- class TestCSOT (IntegrationTest ):
41+ class TestBackpressure (IntegrationTest ):
4242 RUN_ON_LOAD_BALANCER = True
4343
4444 @client_context .require_failCommand_appName
You can’t perform that action at this time.
0 commit comments