mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Refs #27025 -- Fixed a servers test on Python 3.6.
After https://hg.python.org/cpython/rev/4ea79767ff75/, test_strips_underscore_headers fails with: 'Stub' object has no attribute 'sendall'.
This commit is contained in:
		| @@ -12,6 +12,9 @@ class Stub(object): | |||||||
|     def __init__(self, **kwargs): |     def __init__(self, **kwargs): | ||||||
|         self.__dict__.update(kwargs) |         self.__dict__.update(kwargs) | ||||||
|  |  | ||||||
|  |     def sendall(self, data): | ||||||
|  |         self.makefile('wb').write(data) | ||||||
|  |  | ||||||
|  |  | ||||||
| class WSGIRequestHandlerTestCase(SimpleTestCase): | class WSGIRequestHandlerTestCase(SimpleTestCase): | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user