Skip to content

prevent asynccontextmanager and sync contextmanager drifting  #95902

@graingert

Description

@graingert

I think by adopting the testing approach taken by AsyncExitStack and ExitStack for contextlib.contextmanager it should be possible to prevent contextlib.asynccontextmanager from drifting in implementation

class TestAsyncExitStack(TestBaseExitStack, unittest.TestCase):
    class SyncAsyncExitStack(AsyncExitStack):

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions