>
> Yeah I believe it is a new test, so I can't test if it is working for 1.11.
>
I did get it to pass after adding except like this
try:
conn.request('GET', '/example_view/', headers={'Connection':
'keep-alive'})
response = conn.getresponse().read()
conn.request('GET', '/example_view/', headers={'Connection':
'close'})
with self.assertRaises(RemoteDisconnected, msg='Server did not
close the connection'):
try:
conn.getresponse()
except ConnectionAbortedError:
if sys.platform == 'win32':
self.skipTest('Ignore nondeterministic failure on
Windows.')
except ConnectionResetError:
self.skipTest('Ignore failure.')
Tom because you said it varies by OS, so I am not sure which message to add
so I just used 'Ignore failure', should I use something else? I can submit
a simple PR for that.
--
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 [email protected].
To post to this group, send email to [email protected].
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/5eafe681-9fa6-4bdb-a12e-433f51bcb2f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.