freezegun icon indicating copy to clipboard operation
freezegun copied to clipboard

Consider adding socketserver to the default ignore list

Open mikix opened this issue 1 year ago • 0 comments

(I'm talking about the standard library's socketserver.py module.)

In BaseServer.handle_request(), it uses time() to check for timeouts. If you are running a simple test/mock server as part of your tests, a call to handle incoming requests won't time out when freezegun has frozen time.

I'm not sure if there would be other bad side effects to adding this module. But there's at least the above bug if it's not ignored.

mikix avatar Apr 21 '23 16:04 mikix