[issue42878] urllib.request.HTTPPasswordMgr.is_suburi does not care about order

Yair Frid report at bugs.python.org
Wed Jul 7 01:55:04 EDT 2021


Yair Frid <fridyair at gmail.com> added the comment:

This issue was discovered when i was writing unit tests for #42766, since #42766 was fixed when i discovered it, i realized i might want a new issue, i don't mind moving this to be a comment, but there *are* 2 distinct test cases that fail:

a test case that would fail here:
is_suburi('/foo/bar', '/bar/foo') == True
which is different than;
is_suburi('/foo/bar', '/foobar') == True

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42878>
_______________________________________


More information about the Python-bugs-list mailing list