@@ -133,7 +133,7 @@ def repr_args_kwargs(*args, **kwargs):
133
133
return '({})' .format (arguments )
134
134
135
135
136
- def positional_not_allowed_exception (* args , ** kwargs ):
136
+ def _positional_not_allowed_exception (* args , ** kwargs ):
137
137
arguments = repr_args_kwargs (* args , ** kwargs )
138
138
139
139
return DecoratorArgumentsError (
@@ -147,13 +147,13 @@ def decorator_decorator(d):
147
147
def decorator_wrapper (* args , ** decorator_arguments ):
148
148
"""this is decorator_wrapper"""
149
149
if len (args ) > 1 :
150
- raise positional_not_allowed_exception ()
150
+ raise _positional_not_allowed_exception ()
151
151
152
152
if len (args ) == 1 :
153
153
maybe_f = args [0 ]
154
154
155
155
if len (decorator_arguments ) > 0 or not callable (maybe_f ):
156
- raise positional_not_allowed_exception ()
156
+ raise _positional_not_allowed_exception ()
157
157
158
158
f = maybe_f
159
159
return d (f )
@@ -317,7 +317,7 @@ def _async_pytest_fixture_setup(fixturedef, request, mark):
317
317
318
318
319
319
@defer .inlineCallbacks
320
- def tear_it_down (deferred ):
320
+ def _tear_it_down (deferred ):
321
321
"""Tear down a specific async yield fixture."""
322
322
try :
323
323
yield deferred
@@ -361,7 +361,7 @@ def pytest_runtest_teardown(item):
361
361
deferreds .append (deferred )
362
362
363
363
for deferred in deferreds :
364
- _run_inline_callbacks (tear_it_down , deferred )
364
+ _run_inline_callbacks (_tear_it_down , deferred )
365
365
366
366
367
367
def pytest_pyfunc_call (pyfuncitem ):
0 commit comments