Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't track context manager status for BackgroundHTTPServer
There is actually no possible case where __exit__ would be called without __enter__, even if the server is used in an existing context manager block. The only case to ever legitimately call __exit__ is if the instance was created by a context manager in the first place, and __enter__ was called. Signed-off-by: Jiri Jaburek <comps@nomail.dom>
- Loading branch information