fixed warnings issued by 'python doc/scripts/docgen.py --test'