From 2751dbdb94220cbfa37fd92e8a018d3a309ba79b Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 5 Jun 2019 18:32:19 +0200 Subject: [PATCH] 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. --- kitty_tests/datatypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty_tests/datatypes.py b/kitty_tests/datatypes.py index a05131c78..b8fe8644f 100644 --- a/kitty_tests/datatypes.py +++ b/kitty_tests/datatypes.py @@ -257,7 +257,7 @@ class TestDataTypes(BaseTest): self.ae(lf.url_start_at(i), n) for i in range(7): for scheme in 'http https ftp file'.split(): - lspace_test(i) + lspace_test(i, scheme) l3 = create('b https://testing.me a') 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)