test.py: Improve output

Remove the output of the namespace from verify_no_conflicting profiling.

Change-Id: I1d1eb4e3fd9cde11cd36522c2d968dffa9505eb8
This commit is contained in:
Andreas Jaeger 2013-11-17 17:42:58 -05:00
parent 6702ab7d97
commit 1d0bbac5e8
1 changed files with 2 additions and 1 deletions

View File

@ -107,9 +107,10 @@ def verify_no_conflicting_profiling(doc):
c_os_list = child.attrib['os'].split(';')
for os in c_os_list:
if os not in p_os_list:
len_ns = len("{http://docbook.org/ns/docbook}")
raise ValueError(
"%s os profiling (%s) conflicts with os profiling of %s on line %d." %
(p_tag, p_os_list, c_tag, c_line))
(p_tag[len_ns:], p_os_list, c_tag[len_ns:], c_line))
def verify_nice_usage_of_whitespaces(docfile):