facebook/TestSlide

Validate that contexts are not async defs

Aperta

#143 aperta il 7 apr 2020

 (1 commento) (0 reazioni) (0 assegnatari)Python (58 fork)auto 404
TestSlide DSLeasyenhancementgood first issuehelp wanted

Metriche repository

Star
 (147 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

This should yield a failure:

@context
def top(context):
  @context.sub_context
  async def sub(context):
     ...

But is currently being silently ignored. Let's turn this into a failure.

Check:

  • @context
  • @context.sub_context
  • @context.shared_context

Guida contributor