bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module by matrixise · Pull Request #1776 · python/cpython (original) (raw)

Test failed on Windows (Appveyor):

======================================================================
ERROR: test_windows_colon (test.test_httpservers.SimpleHTTPRequestHandlerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\cpython\lib\test\test_httpservers.py", line 1079, in test_windows_colon
    path = self.handler.translate_path('c:c:c:foo/filename')
  File "C:\projects\cpython\lib\http\server.py", line 816, in translate_path
    path = self.directory
AttributeError: 'SocketlessRequestHandler' object has no attribute 'directory'
----------------------------------------------------------------------```