Fix test_url_at
`lspace_test()` has a parameter called scheme with the default value `http`. It is called in a nested for loop, but the scheme from the inner for loop is just ignored.
This commit is contained in:
parent
fe329cb4ab
commit
2751dbdb94
@ -257,7 +257,7 @@ class TestDataTypes(BaseTest):
|
|||||||
self.ae(lf.url_start_at(i), n)
|
self.ae(lf.url_start_at(i), n)
|
||||||
for i in range(7):
|
for i in range(7):
|
||||||
for scheme in 'http https ftp file'.split():
|
for scheme in 'http https ftp file'.split():
|
||||||
lspace_test(i)
|
lspace_test(i, scheme)
|
||||||
l3 = create('b https://testing.me a')
|
l3 = create('b https://testing.me a')
|
||||||
for s in (0, 1, len(l3) - 1, len(l3) - 2):
|
for s in (0, 1, len(l3) - 1, len(l3) - 2):
|
||||||
self.ae(l3.url_start_at(s), len(l3), 'failed with start at: %d' % s)
|
self.ae(l3.url_start_at(s), len(l3), 'failed with start at: %d' % s)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user