[issue11503] Expand test coverage in posixpath

Michael Foord report at bugs.python.org
Tue Mar 15 17:15:29 CET 2011

Michael Foord <michael at voidspace.org.uk> added the comment:

Note that instead of try finally constructs you can create a cleanup function and call self.addCleanup(...). This reduces extra levels of indentation in your test code.

In the new code in "test_ismount", from "# Non-existent mountpoint" on, I would turn this into a new test. (Does os.symlink *always* exist - if it is platform dependent you should skip the test if it isn't available.)


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list