fix sonarcloud-reported bug in xmlwriter, add test · Pull Request #1951 · RDFLib/rdflib (original) (raw)

Summary of changes

sonarcloud detected a bug: “Remove 1 unexpected arguments; 'join' expects 1 positional arguments.” in xmlwriter:

return ":".join(pre, uri[len(ns) :])

Added containing brackets apparently omitted by original author.

return ":".join([pre, uri[len(ns) :]])

Added test for surety, took the opportunity of adding two tests to take coverage of xmlwriter to 100%.

Checklist