﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29920	Add a test for smart_urlquote()'s UnicodeError branch	Hasan Ramezani	Hasan Ramezani	"There is a block in `utils.html.smart_urlquote() `  which There is no test coverage for except block:

{{{
    try:
        netloc = netloc.encode('idna').decode('ascii')  # IDN -> ACE
    except UnicodeError:  # invalid domain part
        return unquote_quote(url)
}}}

we need to propose an example to cover the except block.

"	Cleanup/optimization	closed	Testing framework	2.1	Normal	fixed			Ready for checkin	1	0	0	0	0	0
