gabrielfalcao / HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module
https://httpretty.readthedocs.org
MIT License
2.11k stars 276 forks source link

test_httpretty_should_handle_paths_starting_with_two_slashes needs update #457

Open jpopelka opened 2 years ago

jpopelka commented 2 years ago

The test checks that we can handle URLs with paths starting with //.

However the http.server.BaseHTTPRequestHandler.parse_request() now replaces '//' with '/' so the test should be updated to allow also '/foo' as a path.

papoteur-mga commented 2 years ago

Hello, Trying to package this module for Mageia, we see this issue. Is it a problem with the test which is wrong or that really that paths starting with // are no more handled?

MeggyCal commented 6 months ago

The test started failing with requests 2.32.2 (I didn't test 2.32.0, sorry), probably with https://github.com/psf/requests/pull/6644.