@@ -133,7 +133,7 @@ def repr_args_kwargs(*args, **kwargs):
133133 return '({})' .format (arguments )
134134
135135
136- def positional_not_allowed_exception (* args , ** kwargs ):
136+ def _positional_not_allowed_exception (* args , ** kwargs ):
137137 arguments = repr_args_kwargs (* args , ** kwargs )
138138
139139 return DecoratorArgumentsError (
@@ -147,13 +147,13 @@ def decorator_decorator(d):
147147 def decorator_wrapper (* args , ** decorator_arguments ):
148148 """this is decorator_wrapper"""
149149 if len (args ) > 1 :
150- raise positional_not_allowed_exception ()
150+ raise _positional_not_allowed_exception ()
151151
152152 if len (args ) == 1 :
153153 maybe_f = args [0 ]
154154
155155 if len (decorator_arguments ) > 0 or not callable (maybe_f ):
156- raise positional_not_allowed_exception ()
156+ raise _positional_not_allowed_exception ()
157157
158158 f = maybe_f
159159 return d (f )
@@ -317,7 +317,7 @@ def _async_pytest_fixture_setup(fixturedef, request, mark):
317317
318318
319319@defer .inlineCallbacks
320- def tear_it_down (deferred ):
320+ def _tear_it_down (deferred ):
321321 """Tear down a specific async yield fixture."""
322322 try :
323323 yield deferred
@@ -361,7 +361,7 @@ def pytest_runtest_teardown(item):
361361 deferreds .append (deferred )
362362
363363 for deferred in deferreds :
364- _run_inline_callbacks (tear_it_down , deferred )
364+ _run_inline_callbacks (_tear_it_down , deferred )
365365
366366
367367def pytest_pyfunc_call (pyfuncitem ):
0 commit comments