Revise the test case for pyexpat to avoid using asserts.  Conform better
to the Python style guide, and remove unneeded imports.
2 files changed