scrapy / scurl

Performance-focused replacement for Python urllib
Apache License 2.0
21 stars 6 forks source link

WIP: use original tests from urllib #57

Closed malloxpb closed 4 months ago

malloxpb commented 6 years ago

This PR restores all the tests from urllib, since the current tests in Scurl are modified to pass the tests. However, we need Scurl to act similar to urllib 😄

malloxpb commented 6 years ago

We will also need to restore the tests from w3lib and try to make Scurl conform to all the original tests in there!

malloxpb commented 5 years ago

The first issue that we need to work on:

>>> import scurl
>>> scurl.urljoin('http://google.com/', '/g')
'http://google.com/g'
>>> scurl.urljoin('http://google.com/', '//g')
'http://g/' (it should be http://g)