I added this test for the keep-alive release blocker. It's possible that the exceptions raised in that test vary by OS at least on 3.4, the docs suggest that it should throw BadStatusLine instead.
ConnectionResetError is also a correct exception to raise in that specific case, we should just add that to the try/catch statement I think. On 20 Sep 2017 10:14 am, "Adam Johnson" <m...@adamj.eu> wrote: Hi Zhiqiang It's hard to tell what the problem is with more details. From your traceback it looks like you're running Python3.4 on MacOS but there's no indication of your database or other settings. If you run the tests on the 1.11 branch, does it pass? If so, you can bisect to find the regression and report that as a proper bug, instructions here: https://docs.djangoproject.com/en/dev/internals/contributing/ triaging-tickets/#bisecting-a-regression Otherwise, more information is needed to debug. On 20 September 2017 at 03:46, Zhiqiang Liu <zachliu...@gmail.com> wrote: > I run the test suits for master and get the following error. > > Traceback (most recent call last): > File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework > /Versions/3.4/lib/python3.4/unittest/case.py", line 58, in > testPartExecutor > yield > File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework > /Versions/3.4/lib/python3.4/unittest/case.py", line 577, in run > testMethod() > File "/Users/ZachLiu/CS/Python/Projects/Django/django/django/test/utils.py", > line 371, in inner > return func(*args, **kwargs) > File > "/Users/ZachLiu/CS/Python/Projects/Django/django/tests/servers/tests.py", > line 80, in test_closes_connection_without_content_length > conn.getresponse() > File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework > /Versions/3.4/lib/python3.4/http/client.py", line 1171, in getresponse > response.begin() > File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework > /Versions/3.4/lib/python3.4/http/client.py", line 351, in begin > version, status, reason = self._read_status() > File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework > /Versions/3.4/lib/python3.4/http/client.py", line 313, in _read_status > line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") > File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework > /Versions/3.4/lib/python3.4/socket.py", line 374, in readinto > return self._sock.recv_into(b) > ConnectionResetError: [Errno 54] Connection reset by peer > > Is there anything I missed? Anyone can help? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/django-developers. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/django-developers/9b97b2a3-160f-4c34-b4fd-c447cd1f6895% > 40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/9b97b2a3-160f-4c34-b4fd-c447cd1f6895%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/ msgid/django-developers/CAMyDDM0nGnmWyjatkYhk695O% 3DPc-bJVAbKGqaXV4xVQxF96vGg%40mail.gmail.com <https://groups.google.com/d/msgid/django-developers/CAMyDDM0nGnmWyjatkYhk695O%3DPc-bJVAbKGqaXV4xVQxF96vGg%40mail.gmail.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFNZOJP264dGhLfVVVxqc%3Dnn5PmFtSdDGOBwrkRU8_2RSJ%2BxeA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.