mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
python3-django: fix intendation error in CVE patch
This change is for python3-django_2.2.28. This patch contains an incorrect intendation, making the tests fail. This change fixes that. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
@@ -95,15 +95,15 @@ index 5abab8d..1956655 100644
|
|||||||
),
|
),
|
||||||
('foo@example.com', '<a href="mailto:foo@example.com">foo@example.com</a>'),
|
('foo@example.com', '<a href="mailto:foo@example.com">foo@example.com</a>'),
|
||||||
)
|
)
|
||||||
+ (
|
+ (
|
||||||
+ "test@" + "한.글." * 15 + "aaa",
|
+ "test@" + "한.글." * 15 + "aaa",
|
||||||
+ '<a href="mailto:test@'
|
+ '<a href="mailto:test@'
|
||||||
+ + "xn--6q8b.xn--bj0b." * 15
|
+ + "xn--6q8b.xn--bj0b." * 15
|
||||||
+ + 'aaa">'
|
+ + 'aaa">'
|
||||||
+ + "test@"
|
+ + "test@"
|
||||||
+ + "한.글." * 15
|
+ + "한.글." * 15
|
||||||
+ + "aaa</a>",
|
+ + "aaa</a>",
|
||||||
+ ),
|
+ ),
|
||||||
for value, output in tests:
|
for value, output in tests:
|
||||||
with self.subTest(value=value):
|
with self.subTest(value=value):
|
||||||
self.assertEqual(urlize(value), output)
|
self.assertEqual(urlize(value), output)
|
||||||
|
|||||||
Reference in New Issue
Block a user